New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

pitekantrop/shittyprofiler

A shitty profiler for Laravel.
2,157 1
Install
composer require pitekantrop/shittyprofiler
Latest Version:1.1.4
PHP:>=5.3.0
Laravel:4
License:MIT
Last Updated:Jul 27, 2014
Links: GitHub  ·  Packagist
Maintainer: pitekantrop

Laravel Shitty Profiler

A shitty profiler for Laravel. It only shows some quick and dirty stats, but it's unobtrusive and easy to configure.

Installation

Add the following to your composer.json file:

"pitekantrop/shittyprofiler":"*"

Then, run composer update or composer install if you haven't already installed any packages.

While you're waiting, add the following line to the providers array in app/config/app.php:

'Pitekantrop\ShittyProfiler\ProfilerServiceProvider',

And the profiler is installed.

Usage

While your app is in debug mode simply add the ?profile query string to the URL of the request that you wish to inspect, and the usual output will be replaced with the profiler view.

Custom Markers

To measure time from the application start up to a certain point add the following marker in your code:

Profiler::mark('CustomMarker');

It is also possible to measure time between two markers:

Profiler::mark('AnotherCustomMarker');
// Some code
Profiler::mark('AnotherCustomMarkerEnd');

Related Packages

kr4y/profiler

Profiler for Laravel 4

89 0
jkocik/laravel-profiler

Profiler for Laravel Framework

652,743 189
hughsaffar/laravel-test-trap

Laravel Test Trap

406,761 18
papajoker/profiler

A PHP 5.3 profiler based off of Laravel 3's Anbu.

45 0
blackfire/php-sdk

Blackfire.io PHP SDK

13,700,020 160

Version History

Version Released PHP Laravel License
1.1.4 >=5.3.0 >=4.1,<4.3 MIT
1.1.3 >=5.3.0 >=4.1,<4.3 MIT
1.1.2 >=5.3.0 4.1.* MIT
1.1.1 >=5.3.0 4.1.* MIT
1.1.0 >=5.3.0 4.1.* MIT