timbre/profiler

URL profiler package for Laravel 4.

v0.2.0 2014-08-28 05:35 UTC

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);
}

Screenshots

alt text

alt text