grummfy / php-debugbar-continuousphp
Adding information from package build by continuousphp for the php debugbar
1.1.0
2017-01-05 13:40 UTC
Requires
- php: >=5.3.0
- maximebf/debugbar: ^1.10.5
This package is auto-updated.
Last update: 2024-10-28 18:36:01 UTC
README
Adding information from package build by continuousphp on the php debugbar.
On continuousphp, when you have a package, it comes with a nice json file continuousphp.package
that contains interesting values.
So let's print them in the debugbar.
Install & configuration
composer require --dev grummfy/php-debugbar-continuousphp
Then add to your debugbar :
$debugbar->addCollector(new Grummfy\DebugBar\ContinuousphpCollector('path/to/continuousphp.package'));
Integration to other debug bar
On any bar based on php-debugbar, it will be the same.
An example with laravel:
Debugbar::addCollector(new Grummfy\DebugBar\ContinuousphpCollector('path/to/continuousphp.package'));
Personally I add it inside an AppServiceProvider inside the providers directory.
Demo
To get a simple demo, go to demo dir and run
composer install
php -S localhost:8080
Open your browser to http://localhost:8080 .