Use filp/whoops with gluephp/glue
Use Composer:
$ composer require gluephp/glue-whoops
$app = new Glue\App;
$app->config->override([
'debug' => true,
]);
The debug
settings isn't specifically for Whoops, but if debug is false, Whoops will be disabled since we don't want to use it in production.
$app->register(
new Glue\Whoops\ServiceProvider()
);
Once the service provider is registered, you can fetch the Whoops instance with:
$whoops = $app->make('Whoops\Run');