maxtrunk / lumen-debugbar
PHP Debugbar integration for Lumen
Installs: 3 945
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 1
Open Issues: 1
Requires (Dev)
- php: >=5.5.9
- illuminate/support: 5.1.*|5.2.*
- maximebf/debugbar: ~1.11.0
- symfony/finder: ~2.7|~3.0
This package is not auto-updated.
Last update: 2024-12-13 20:13:57 UTC
README
This is a package to integrate PHP Debug Bar with Lumen. It includes a ServiceProvider to register the debugbar and attach it to the output. You can publish assets and configure it through Lumen. Read the documentation for more configuration options.
Note: Use the DebugBar only in development. It can slow the application down (because it has to gather data). So when experiencing slowness, try disabling some of the collectors.
It also provides a Facade interface for easy logging Messages, Exceptions and Time
Installation
Require this package with composer:
composer require maxtrunk/lumen-debugbar --dev
After updating composer, add the ServiceProvider to the bootstrap/app.php
if (env('APP_DEBUG')) {
$app->register(Barryvdh\Debugbar\LumenServiceProvider::class);
}
To change the configuration, copy the file to your config folder and enable it:
$app->configure('debugbar');
That's it!