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-11-22 03:05:35 |
Package Statistics | |
---|---|
Total Downloads: | 88 |
Monthly Downloads: | 3 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Profiler for Laravel 4
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');