timbre / profiler
URL profiler package for Laravel 4.
Installs: 106
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 1
Forks: 0
pkg:composer/timbre/profiler
This package has no released version yet, and little information is available.
README
Timbre Profiler is a URL profiler for Laravel 4.
Installation
composer.json file:
{
"require": {
"timbre/profiler": "0.*"
}
}
config file app/config/app.php
'Timbre\Profiler\ProfilerServiceProvider',
'Profiler' => 'Timbre\Profiler\Facades\Profiler',
Configuration
php artisan migrate --package=timbre/profiler
php artisan config:publish timbre/profiler
php artisan asset:publish timbre/profiler
app/start/global.php
App::before(function($request)
{
Profiler::start();
});
App::after(function($request, $response)
{
Profiler::stop();
});
Event::listen('timbre.profiler', 'Timbre\Profiler\Profiler@handle');
app/controllers/BaseController.php
public function __construct()
{
Event::fire('timbre.profiler', $this);
}