itkg / debug
Itkg debug library
Installs: 18 611
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 1
Requires
- php: >=5.3.3
- itkg/core: ~1
- maximebf/debugbar: 1.*
- symfony/filesystem: ~2.3
Requires (Dev)
- phpunit/phpunit: 3.7.*
This package is not auto-updated.
Last update: 2024-11-19 04:26:29 UTC
README
Debug library with custom debug bar
Installation
Installation by Composer
If you use composer, add itkg/debug as a dependency to the composer.json of your application
"require": { ... "itkg/debug": "dev-master" ... },
To install assets in your web directory with composer, you can add this lines :
"extra": { "itkg_debug_asset_dir": "path/to/your/web/directory" }, "scripts": { "post-update-cmd": "Itkg\\Debug\\Composer\\Installer::copyAssets", "post-install-cmd": "Itkg\\Debug\\Composer\\Installer::copyAssets" }
Usage
For documentation & default data collector, read php-debugBar documentation.
To activate debug bar :
... // include autoload, etc $container = new Itkg\Core\ServiceContainer(); $container->register(new Itkg\Debug\ServiceProvider()); $debugBarRenderer = $container['debug']['renderer']; // include scripts header echo $debugBarRenderer->renderHead(); // include debug bar echo $debugBarRenderer->render();