Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 457 Bytes

README.md

File metadata and controls

29 lines (17 loc) · 457 Bytes

Buggregator client

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);