timbre/profiler

此包已被废弃且不再维护。未建议替代包。

Laravel 4 的 URL 分析包。

此包尚未发布任何版本,信息较少。


README

Timbre Profiler 是 Laravel 4 的 URL 分析器。

安装

composer.json 文件

{
    "require": {
        "timbre/profiler": "0.*"
    }
}

配置文件 app/config/app.php

'Timbre\Profiler\ProfilerServiceProvider',
'Profiler' => 'Timbre\Profiler\Facades\Profiler',

配置

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

屏幕截图

alt text

alt text