kr4Y / laravel-profiler by kr4Y

Profiler for Laravel 4
85
0
2
Package Data
Maintainer Username: kr4Y
Maintainer Contact: kr4y.php@gmail.com (kr4Y)
Package Create Date: 2013-04-23
Package Last Update: 2014-03-03
Language: PHP
License: MIT
Last Refreshed: 2024-04-17 15:06:35
Package Statistics
Total Downloads: 85
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

laravel-profiler

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