Phalcon Debugbar for PHP Phalcon 3.x.x. You can view 4 standard panels right now - execution timer, view renderering status, database profiler and router result. You can optionally enable specific remote addresses, so you can view debugbar even in production mode.
- Include packagist repository into your project.
composer require milankyncl/phalcon-debugbar
- Include this snippet into your bootstrap file, just before creating Application instance. Enable specific remote addresses.
$phalconDebugbar = new \MilanKyncl\Debugbar\PhalconDebugbar();
// Your remote addresses or just bool (true|false)
$phalconDebugbar->setDebugMode([
'127.0.0.1', '::1'
]);
// listen to services
$phalconDebugbar->listen();
- That's the magic!
Enjoy.