kaz29 / phai
Phai is PSR-15 compliant middleware for Application Insights.
1.0.11
2023-09-08 01:38 UTC
Requires
- microsoft/application-insights: dev-master
- psr/http-message: ^1.0
- psr/http-server-middleware: ^1.0
- psr/log: ^1.1|^2.0
Requires (Dev)
- phpunit/phpunit: ~7|~8|~9
This package is auto-updated.
Last update: 2026-06-25 08:08:13 UTC
README
Phai is PSR-15 compliant middleware for Application Insights.
Installation
Install the latest version with
$ composer require kaz29/phai:dev-master
Basic Usage
Framework Integrations
Frameworks or libraries using PSR-15 can be used very easily with this middleware.
Slim3
How to setup
$ cd examples/slim3
$ composer install
$ env APPLICATION_INSIGHTS_KEY='Your application insights "Instrumentation Key"' php -S localhost:8080 -t public public/index.php
CakePHP-3.x
Hot to setup
$ cd examples/cakephp
$ composer install
$ env APPLICATION_INSIGHTS_KEY='Your application insights "Instrumentation Key"' ./bin/cake server
Laravel
TBD
Author
Kazuhiro Watanabe - cyo [at] mac.com - https://twitter.com/kaz_29
License
Phai is licensed under the MIT License - see the LICENSE file for details