dvelopment/firephp-bundle

The FirePHPBundle provides simple integration FirePHP for your Symfony2 project.

Installs: 39 553

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 2

Type:symfony-bundle

dev-master 2013-09-08 12:36 UTC

This package is not auto-updated.

Last update: 2024-04-22 12:29:28 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));

    // ...
}