sfFirePHPPlugin - 1.1.7

FirePHP Symfony Plugin

You are currently browsing
the website for symfony 1

Visit the Symfony2 website

« Back to the Plugins Home


Forgot your password?
Create an account



advanced search
Information Readme Releases Changelog Contribute
Show source | Show as Markdown

sfFirePHP plugin


This plugin integrates FirePHP into symfony.

According to the firephp web site:

"FirePHP enables you to print to your Firebug Console using a simple PHP function call.

What makes FirePHP different?

All data is sent via a set of X-FirePHP-Data response headers. This means that the debugging data will not interfere with the content on your page. Thus FirePHP is ideally suited for AJAX development."


php symfony plugin:install sfFirePHPPlugin

Upgrade plugins

php symfony plugin:upgrade -r=1.1.7 sfFirePHPPlugin


php symfony plugin:uninstall sfFirePHPPlugin


Client Side:

- [Firefox](http://www.getfirefox.com/) - Only Works with the Firefox browser :)
- [Firebug](http://www.getfirebug.com/) - Of course you need firebug.
- [FirePHP](http://www.firephp.org/) - Also install the firephp extension for firefox.


You can check a FirePHP Tutorial here:

After you have Firefox installed, with the firebug and firephp extensions, you will need to install the sfFirePHPPlugin.

Then inside a template you can do something like:

<?php $firephp = sfFirePHP::getInstance(true); ?>
<?php $firephp->fb('Hello World'); // Defaults to FirePHP::LOG ?>
<?php $firephp->fb('Log message'  ,FirePHP::LOG); ?>
<?php $firephp->fb('Info message' ,FirePHP::INFO); ?>
<?php $firephp->fb('Warn message' ,FirePHP::WARN);  ?>
<?php $firephp->fb('Error message',FirePHP::ERROR); ?>

When you load the page, those messages will appear on your firebug console.


For the full copyright and license information, please view the LICENSE file that was distributed with this source code.