p3in/firephp

FirePHP Support for Laravel 4

Installs: 2 351

Dependents: 0

Stars: 14

Watches: 1

Forks: 2

Language: PHP

1.1.7 2014-09-09 00:48 UTC

README

This Laravel 4 package brings FirePHP to Laravel 4. By default it will log to your FireBug Console Database query information and log events.

Pre-Installation

Before installing this package, you should make sure you have FirePHP Firefox addon installed and your Firebug Net panel enabled.

Install Firebug Install FirePHP

Installation

Add p3in/firephp to your composer requirements:

"require-dev": {
    "p3in/firephp": "dev-master"
}

Next, update Composer from the Terminal:

$ composer update --dev

Once the package is installed, open your app/config/app.php configuration file and locate the providers key. Add the following line to the end.

'P3in\Firephp\FirephpServiceProvider',

Finally, publish the default configuration (it will end up in app/config/packages/p3in/firephp/config.php):

$ php artisan config:publish p3in/firephp

Usage

You can use it in a number of ways.

// Use the built in Log system
Log::info('This is some useful information.');
Log::warning('Something could be going wrong.');
Log::error('Something is really going wrong.');

// Use the Firebug methods.
FB::group('testGRoup');
    FB::info('This is some useful information.');
    FB::warn('Something could be going wrong.');
    FB::error('Something is really going wrong.');
FB::groupEnd();

// Or a combination of both.
FB::group('testGRoup');
    Log::info('This is some useful information.');
    Log::warning('Something could be going wrong.');
    Log::error('Something is really going wrong.');
FB::groupEnd();

Remember, by default all Logged events will be sent to your FireBug console.

Enjoy! Please feel free to provide any feedback or feature requests.