p3in / firephp
FirePHP Support for Laravel 4
Installs: 7 642
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=5.4
- illuminate/support: >=4.1
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.