papajoker/profiler is a Laravel package for a php 5.3 profiler based off of laravel 3's anbu..
It currently has 0 GitHub stars and 45 downloads on Packagist (latest version v1.1.1).
Install it with composer require papajoker/profiler.
Discover more Laravel packages by papajoker
or browse all Laravel packages to compare alternatives.
Last updated
A PHP 5.3 profiler based off of Laravel 3's Anbu.
Installing profiler is simple. First, you'll need to add the package to the require attribute of your composer.json file.
{
"require": {
"loic-sharma/profiler": "1.1.*"
},
}
To enable te profiler in Laravel 4 you will need to register the Service Provider and the Facade.
'Profiler\ProfilerServiceProvider', to the list of service providers in app/config/app.php'Profiler' => 'Profiler\Facades\Profiler', to the list of class aliases in app/config/app.phpphp artisan config:publish loic-sharma/profilerAnd voila! You can use the profiler.
Profiler::startTimer('testLogging');
// The profiler listens to Laravel's logger.
Log::info('Hello World!');
Log::notice('Some event occured.');
Profiler::endTimer('testLogging');
Add the following to your code:
$logger = new Profiler\Logger\Logger;
$profiler = new Profiler\Profiler($logger);
You can now use the profiler to your heart's content.
$profiler->startTimer('testLogging');
$logger->debug($object);
$logger->info('Hello World!');
$logger->notice('Some event occurred.');
$logger->warning('Careful: some warning.');
$logger->error('Runtime error.');
$logger->critical('This needs to be fixed now!');
$logger->emergency('The website is down right now.');
$profiler->endTimer('testLogging');
echo $profiler;
Profiler was written by Loic Sharma. Profiler is released under the 2-clause BSD License. See the LICENSE file for details.
Copyright 2012 Loic Sharma
Get paid by clients abroad
Wise gives you local bank details in several currencies and converts at the mid-market rate. Useful when your invoices are not in your own currency.
Try WiseNew Laravel packages worth a look, once a month. No spam, one-click unsubscribe.