Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/grummfy/php-debugbar-continuousphp
Adding information from package build by continuousphp on the debugbar
https://github.com/grummfy/php-debugbar-continuousphp
continuousphp debugbar php-debugbar
Last synced: about 1 month ago
JSON representation
Adding information from package build by continuousphp on the debugbar
- Host: GitHub
- URL: https://github.com/grummfy/php-debugbar-continuousphp
- Owner: Grummfy
- License: mit
- Created: 2016-10-27T21:49:55.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-16T10:22:44.000Z (about 7 years ago)
- Last Synced: 2024-09-25T16:53:41.693Z (about 2 months ago)
- Topics: continuousphp, debugbar, php-debugbar
- Language: PHP
- Size: 32.2 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Debug bar information about continuousphp build
Adding information from package build by [continuousphp](https://continuousphp.com/) on the [php debugbar](http://phpdebugbar.com/).
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](https://github.com/barryvdh/laravel-debugbar):
```
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](http://localhost:8080) .You should see this
![Demo](demo/result.png)