warxcell / excimer-psr-handler
There is no license information available for the latest version (dev-main) of this package.
dev-main
2024-08-11 20:04 UTC
Requires
- php: ^8.2
- psr/http-client: ^1.0
- psr/http-factory: ^1.1
- psr/http-message: ^2.0
- psr/http-server-handler: ^1.0
- psr/log: ^2.0 | ^3.0
Requires (Dev)
This package is auto-updated.
Last update: 2024-11-11 13:25:50 UTC
README
Easily integrate your PHP excimer profiles from long-running PSR Request APP with https://github.com/Warxcell/excimer-ui-server.
Just decorate your app handler. (Example from Symfony APP)
$services->set(\Warxcell\ExcimerHandler\SpeedscopeDataSender::class)->args([ '$url' => 'https://your-on-premise-installation.com/profile', ]); $services->set(\Warxcell\ExcimerHandler\ExcimerRequestHandler::class) ->decorate(AppHandler::class) ->args([ '$handler' => service('.inner'), ]);
If you want to profile symfony commands, register following service.
$services->set(\Warxcell\ExcimerHandler\ExcimerCommandHandler::class)->args([ '$enabled' => env('PROFILE')->default('')->bool(), ]);