项目作者: Grummfy

项目描述 :
Adding information from package build by continuousphp on the debugbar
高级语言: PHP
项目地址: git://github.com/Grummfy/php-debugbar-continuousphp.git
创建时间: 2016-10-27T21:49:55Z
项目社区:https://github.com/Grummfy/php-debugbar-continuousphp

开源协议:MIT License

下载


Debug bar information about continuousphp build

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

  1. composer require --dev grummfy/php-debugbar-continuousphp

Then add to your debugbar :

  1. $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:

  1. 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

  1. composer install
  2. php -S localhost:8080

Open your browser to http://localhost:8080 .

You should see this
Demo