kaz29/phai

Phai 是符合 PSR-15 规范的 Application Insights 中间件。

1.0.11 2023-09-08 01:38 UTC

README

Phai 是符合 PSR-15 规范的 Application Insights 中间件。

Build Status

安装

使用以下命令安装最新版本

$ 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 文件