marekskopal / buggregator-client
Buggregator client library for xhprof as PSR-15 middleware
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
Buggregator client library for xhprof as PSR-15 middleware.
Install
composer require marekskopal/buggregator-client
Usage
Use XhprofMiddleware
class as PSR-15 middleware.
use MarekSkopal\BuggregatorClient\Middleware; $xhprofMiddleware = new XhprofMiddleware( appName: 'MyApp', url: (string) getenv('PROFILER_ENDPOINT'), )); //e.g. phpleague/route $router->middleware($xhprofMiddleware);