Phai is PSR-15 compliant middleware for Application Insights.
Install the latest version with
$ composer require kaz29/phai:dev-master
Frameworks or libraries using PSR-15 can be used very easily with this middleware.
$ cd examples/slim3
$ composer install
$ env APPLICATION_INSIGHTS_KEY='Your application insights "Instrumentation Key"' php -S localhost:8080 -t public public/index.php
$ cd examples/cakephp
$ composer install
$ env APPLICATION_INSIGHTS_KEY='Your application insights "Instrumentation Key"' ./bin/cake server
TBD
Kazuhiro Watanabe - cyo [at] mac.com - https://twitter.com/kaz_29
Phai is licensed under the MIT License - see the LICENSE file for details