dvelopment / firephp-bundle
The FirePHPBundle provides simple integration FirePHP for your Symfony2 project.
Installs: 39 810
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 2
Type:symfony-bundle
Requires
- php: >=5.3.0
- symfony/framework-bundle: >=2.0
This package is not auto-updated.
Last update: 2024-11-18 15:08:36 UTC
README
The FirePHPBundle provides simple integration FirePHP for your Symfony2 project.
Installation
Add FirePHPBundle to your vendor/bundles dir
Using composer (recommended)
Require the bundle via composer
"require-dev": {
"dvelopment/firephp-bundle": "dev-master"
}
Use deps file
Add the following lines to de /deps file
; Debugging
[FirePHPBundle]
git=git://github.com/Jehu/FirePHPBundle.git
target=/bundles/FirePHPBundle
Use submodule
git submodule add git://github.com/Jehu/FirePHPBundle.git vendor/bundles/FirePHPBundle
Add FirePHPBundle to your application kernel
// app/AppKernel.php
public function registerBundles()
{
// ...
if (in_array($this->getEnvironment(), array('dev', 'test')) || (strpos($this->getEnvironment(), 'dev_') === 0)) {
{
// ...
$bundles[] = new FirePHPBundle\FirePHPBundle();
}
return $bundles;
}
Add FireBugBundle to your autoload.php (only needed if not installed via composer)
// app/autoload.php
$loader = new UniversalClassLoader();
$loader->registerNamespaces(array(
// ...
'FirePHP' => __DIR__.'/../vendor/bundles',
));
Add FirePHPBundle to your application config
// app/config/config_dev.yml
// ...
fire_php: ~
Usage
For available methods see (http://www.firephp.org/HQ/Use.htm)
From controller
public function indexAction()
{
$fb = $this->get('fire_php');
$fb->log(array(1,2,3));
// ...
}