kr4y/profiler

Profiler for Laravel 4

Installs: 70

Dependents: 0

Stars: 1

Watchers: 1

Language: PHP

1.0.2 2013-05-24 14:32 UTC

README

Profiler for Laravel 4

Installation

In composer.json file:

{
    "require-dev": {
        "kr4y/profiler": "dev-master"
    },
}

In app/config/app.php:

'providers' => array(
  ...

    'Kr4Y\Profiler\ProfilerServiceProvider',
    ...
),

'aliases' => array(
  ...
        'Profiler'        => 'Kr4Y\Profiler\Facades\Profiler',
        ...

If you need to disable profiler (disabled in production environment by default), publish package config php artisan config:publish kr4y/profiler and set 'enabled' => false

Profiler snapshot points usage:

Profiler::startPoint('sample snapshot point');

.....

Profiler::endPoint('sample snapshot point');