marekskopal / buggregator-client
用于xhprof的Buggregator客户端库,作为PSR-15中间件
v0.1.0
2024-03-11 21:59 UTC
Requires
- php: >=8.2
- php-http/discovery: ^1.19
- psr/http-client: ^1.0
- psr/http-server-middleware: ^1.0
Requires (Dev)
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^1.10
- phpstan/phpstan-strict-rules: ^1.5
- phpunit/phpunit: ^10.2
- slevomat/coding-standard: ^8.14
- spatie/ray: ^1.39
README
作为PSR-15中间件的Buggregator客户端库用于xhprof。
安装
composer require marekskopal/buggregator-client
使用
使用XhprofMiddleware
类作为PSR-15中间件。
use MarekSkopal\BuggregatorClient\Middleware; $xhprofMiddleware = new XhprofMiddleware( appName: 'MyApp', url: (string) getenv('PROFILER_ENDPOINT'), )); //e.g. phpleague/route $router->middleware($xhprofMiddleware);