PHPackages                             sebklaus/profiler - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. sebklaus/profiler

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

sebklaus/profiler
=================

A profiler for Laravel 4. A continuation of the retired juy/profiler.

v1.7.6(11y ago)3520.2k↓100%9[4 issues](https://github.com/sebklaus/profiler/issues)MITPHPPHP &gt;=5.3.0

Since Aug 8Pushed 11y ago3 watchersCompare

[ Source](https://github.com/sebklaus/profiler)[ Packagist](https://packagist.org/packages/sebklaus/profiler)[ Docs](http://github.com/sebklaus/profiler)[ RSS](/packages/sebklaus-profiler/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (14)Used By (0)

Profiler
========

[](#profiler)

A PHP 5.3 profiler for [Laravel 4.0, 4.1, 4.2](http://www.laravel.com).
Backend based on sorora/omni, frontend based on loic-sharma/profiler. Some features inspired by papajoker/profiler, some features by juy/profiler with additions by myself.

[![Latest Stable Version](https://camo.githubusercontent.com/7397f270f1a5754daf917c0b93e8d9b7934e56370c739aee1016e509a0fd6482/68747470733a2f2f706f7365722e707567782e6f72672f7365626b6c6175732f70726f66696c65722f76657273696f6e2e706e67)](https://packagist.org/packages/sebklaus/profiler) [![Total Downloads](https://camo.githubusercontent.com/a806c9dbad8657de71d2be1a52f90672c8c4695174aef3e630fdc2625689cc1e/68747470733a2f2f706f7365722e707567782e6f72672f7365626b6c6175732f70726f66696c65722f642f746f74616c2e706e67)](https://packagist.org/packages/sebklaus/profiler)

Different themes
----------------

[](#different-themes)

### Dark

[](#dark)

[![](https://camo.githubusercontent.com/b65708ff3818d2e0b19dc9f2046db6b9e2599d8ec2e27414d7507caca83420b8/687474703a2f2f692e696d6d2e696f2f3139744c432e706e67)](http://i.imm.io/19tLC.png "Click for big picture")

### Light

[](#light)

[![](https://camo.githubusercontent.com/3d45aa200f2fcc9afb69d916beaf08ca661b1c46ddfd9d85562d9672f40c8a62/687474703a2f2f692e696d6775722e636f6d2f4b4965554274532e706e67)](http://i.imgur.com/KIeUBtS.png "Click for big picture")

Features
--------

[](#features)

- Laravel Environment info, compatible with 4.0.x and 4.1.x
- Total memory usage
- Current controller/action info
- Routes
- Log events
- SQL Query Log with syntax highlighting
- Total execution time
    - Custom "checkpoints", see [Custom Timers](#custom-timers) for more details.
- Includes all application files
- All variables passed to the current view
- Session variables
- Laravel Config settings
- Laravel webserver error logs
- Laravel auth variables (if used)
- Sentry auth variables (if used)
- Enabling/ Disabling via URL (add **/\_profiler** to the end of any URL (eg. *[http://localhost/folder/\_profiler](http://localhost/folder/_profiler)*))
- Two different themes; dark and light.

Installation
------------

[](#installation)

To add Profiler to your Laravel application, add the below line to your `composer.json` file, in `"require": { … }`:

```
"sebklaus/profiler" : "dev-master"

```

Then run `composer update` or `composer install`, if it is the first time you install packages.

The final step is to add the below line to the end of the `providers` array in `app/config/app.php` (or the appropriate environment `app.php`):

```
'Sebklaus\Profiler\Providers\ProfilerServiceProvider',

```

Configuration
-------------

[](#configuration)

In order to be able to change the default settings of Profiler, publish the config file by running:

```
php artisan config:publish sebklaus/profiler

```

To change the default settings, edit `app/config/packages/sebklaus/profiler/config.php`.

### Profiler

[](#profiler-1)

Set this option to `FALSE` to deactivate Profiler or `TRUE` to activate it. The default `NULL` uses the `debug` setting of `app/config/app.php` (or the appropriate environment `app.php`) to activate/ deactivate.

```
// config.php
'profiler' => NULL,

```

To be able to enable/ disable Profiler via URL (add **/\_profiler** to the end of any URL (eg. *[http://localhost/folder/\_profiler](http://localhost/folder/_profiler)*)), set the `urlToggle` option to `TRUE`:

```
// config.php
'urlToggle' => FALSE,

```

You will be redirected back to the page you started the request from (eg. **).

> If you have had Profiler installed prior to **v1.6.0** and published the config settings, please add the above `urlToggle` element to the array in `/app/config/packages/sebklaus/profiler/config.php` or run `php artisan config:publish sebklaus/profiler` again. Running `php artisan config:publish sebklaus/profiler` will replace the config file, so make sure you restore your desired settings.

```
// config.php
'urlTogglePassword' => \Hash::make((string) mt_rand(0, microtime(true))),

```

If `profiler` is `NULL` or `FALSE` **and** `urlToggle` is `TRUE` **and** your app is running in the `production` environment, you will be asked to enter the password that has been set for `urlTogglePassword` in order to enable Profiler.
Upon successful password verification, Profiler will stay enabled for the duration of the session.

Change `(string) mt_rand(0, microtime(true))` to your preferred password to enable Profiler.

> If you have had Profiler installed prior to **v1.7.0** and published the config settings, please add the above `urlTogglePassword` element to the array in `/app/config/packages/sebklaus/profiler/config.php` or run `php artisan config:publish sebklaus/profiler` again. Running `php artisan config:publish sebklaus/profiler` will replace the config file, so make sure you restore your desired settings.

If you wish to disable Profiler during runtime, add the below code to your script:

```
Config::set('profiler::profiler', false);

```

You can (re-)order, disable and adjust label and title for the various info sections of Profiler by editing values of the `btns` array:

```
// config.php
'btns' => array(
	'environment'=> array('label'=>'ENV','title'=>'Environment'),
	'memory'=>		array('label'=>'MEM','title'=>'Memory'),
	'controller'=>	array('label'=>'CTRL','title'=>'Controller'),
	'routes'=>		array('label'=>'ROUTES'),
	'log'=>			array('label'=>'LOG'),
	'sql'=>			array('label'=>'SQL'),
	'checkpoints'=> array('label'=>'TIME'),
	'file'=>		array('label'=>'FILES'),
	'view'=>		array('label'=>'VIEW'),
	'session'=>		array('label'=>'SESSION'),
	'config'=>		array('label'=>'CONFIG'),
	'storage'=>		array('label'=>'LOGS','title'=>'Logs in storage'),
	'auth'=>		array('label'=>'AUTH'),
	'auth-sentry'=> array('label'=>'AUTH')
),

```

Add a link to your preferred (Laravel) documentation (or really anywhere you want) by changing the value of `doc`.
The link is active on the Laravel logo on the left hand side of the opened Profiler.

```
// config.php
'doc'=>'http://laravel.com/docs',

```

### jQuery

[](#jquery)

Profiler makes use of [jQuery](http://jquery.com), which is automatically downloaded and included, if it can't be detected.

Usage
-----

[](#usage)

### Custom Timers

[](#custom-timers)

To start a timer, all you need to do is:

```
Profiler::start('my timer key');

```

To end the timer, simply call the end function like so:

```
Profiler::end('my timer key');

```

Logging
-------

[](#logging)

Profiler utilizes Laravels built in logging system and captures logged events. To log events, you can use (as you would with Laravel) any of these:

```
Log::debug('Your message here');
Log::info('Your message here');
Log::notice('Your message here');
Log::warning('Your message here');
Log::error('Your message here');
Log::critical('Your message here');
Log::alert('Your message here');
Log::emergency('Your message here');

```

These are colour coded in the `Log` part of Profiler - colours may change in the future to more accurately reflect the log type.

###  Health Score

37

—

LowBetter than 84% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor3

3 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~33 days

Recently: every ~64 days

Total

12

Last Release

4243d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2aa442cb1669d47f4005b00b4f4d0226cf1ee17c55fe738397340e8d513d121d?d=identicon)[sebklaus](/maintainers/sebklaus)

---

Top Contributors

[![sebklaus](https://avatars.githubusercontent.com/u/3457255?v=4)](https://github.com/sebklaus "sebklaus (14 commits)")[![barryvdh](https://avatars.githubusercontent.com/u/973269?v=4)](https://github.com/barryvdh "barryvdh (4 commits)")[![garygreen](https://avatars.githubusercontent.com/u/1702638?v=4)](https://github.com/garygreen "garygreen (3 commits)")[![rmasters](https://avatars.githubusercontent.com/u/34284?v=4)](https://github.com/rmasters "rmasters (3 commits)")[![ericmagnuson](https://avatars.githubusercontent.com/u/479605?v=4)](https://github.com/ericmagnuson "ericmagnuson (3 commits)")[![Anahkiasen](https://avatars.githubusercontent.com/u/1321596?v=4)](https://github.com/Anahkiasen "Anahkiasen (2 commits)")[![fturmel](https://avatars.githubusercontent.com/u/4009209?v=4)](https://github.com/fturmel "fturmel (2 commits)")[![harshjv](https://avatars.githubusercontent.com/u/2311316?v=4)](https://github.com/harshjv "harshjv (2 commits)")[![landjea](https://avatars.githubusercontent.com/u/4738992?v=4)](https://github.com/landjea "landjea (1 commits)")[![maclof](https://avatars.githubusercontent.com/u/4358583?v=4)](https://github.com/maclof "maclof (1 commits)")[![Kussie](https://avatars.githubusercontent.com/u/4960791?v=4)](https://github.com/Kussie "Kussie (1 commits)")[![bstrahija](https://avatars.githubusercontent.com/u/125499?v=4)](https://github.com/bstrahija "bstrahija (1 commits)")[![spib](https://avatars.githubusercontent.com/u/512036?v=4)](https://github.com/spib "spib (1 commits)")

---

Tags

laravelprofilerdebug baranbujuy

### Embed Badge

![Health badge](/badges/sebklaus-profiler/health.svg)

```
[![Health](https://phpackages.com/badges/sebklaus-profiler/health.svg)](https://phpackages.com/packages/sebklaus-profiler)
```

###  Alternatives

[barryvdh/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k121.6M550](/packages/barryvdh-laravel-debugbar)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k253.2k13](/packages/fruitcake-laravel-debugbar)[recca0120/laravel-tracy

A Laravel Package to integrate Nette Tracy Debugger

388282.6k3](/packages/recca0120-laravel-tracy)[daylerees/anbu

The Anbu profiler for Laravel 4.

3054.9k](/packages/daylerees-anbu)[laracraft-tech/laravel-xhprof

Easy XHProf setup to profile your laravel application!

233298.5k](/packages/laracraft-tech-laravel-xhprof)[lsrur/inspector

Laravel Inspector, debugging and profiling tools for Web Artisans

23441.1k](/packages/lsrur-inspector)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
