kaz29 / phai
Phai 是符合 PSR-15 规范的 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
- dev-master
- 1.0.11
- 1.0.10
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-dependabot/composer/examples/cakephp3/guzzlehttp/psr7-1.9.1
- dev-dependabot/composer/examples/slim3/guzzlehttp/psr7-1.9.1
- dev-dependabot/composer/examples/cakephp3/composer/composer-1.10.26
- dev-feature/cakephp-4-example
This package is auto-updated.
Last update: 2024-09-25 04:01:18 UTC
README
Phai 是符合 PSR-15 规范的 Application Insights 中间件。
安装
使用以下命令安装最新版本
$ composer require kaz29/phai:dev-master
基本用法
框架集成
使用 PSR-15 的框架或库可以非常容易地使用此中间件。
Slim3
如何设置
$ 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
如何设置
$ cd examples/cakephp
$ composer install
$ env APPLICATION_INSIGHTS_KEY='Your application insights "Instrumentation Key"' ./bin/cake server
Laravel
待定
作者
Kazuhiro Watanabe - cyo [at] mac.com - https://twitter.com/kaz_29
许可证
Phai 使用 MIT 许可证授权 - 详细信息请参阅 LICENSE 文件