p3in/firephp

This package is abandoned and no longer maintained. The author suggests using the appcompass/firephp package instead.

FirePHP Support for Laravel 4

1.1.7 2019-04-13 19:46 UTC

This package is auto-updated.

Last update: 2021-04-29 21:16:04 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.