Download the PHP package p3in/firephp without Composer
On this page you can find all versions of the php package p3in/firephp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package firephp
Short Description FirePHP Support for Laravel 4
License MIT
Homepage https://github.com/appcompass/firephp
Informations about the package firephp
FirePHP support in Laravel 4
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.