gluephp / glue-whoops
Use whoops in Glue
Installs: 155
Dependents: 2
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/gluephp/glue-whoops
Requires
- php: >=5.5.0
- filp/whoops: 2.1.*
This package is not auto-updated.
Last update: 2025-10-09 06:16:31 UTC
README
Use filp/whoops with gluephp/glue
Installation
Use Composer:
$ composer require gluephp/glue-whoops
Configure 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.
Register Whoops
$app->register( new Glue\Whoops\ServiceProvider() );
Get the Whoops instance
Once the service provider is registered, you can fetch the Whoops instance with:
$whoops = $app->make('Whoops\Run');