warxcell/excimer-handler

There is no license information available for the latest version (dev-main) of this package.

dev-main 2024-08-11 20:04 UTC

This package is auto-updated.

Last update: 2024-12-11 20:54: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(),
]);