PHPackages                             regulus/exterminator - 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. regulus/exterminator

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

regulus/exterminator
====================

A simple debugging composer package for Laravel 4 that allows you to output color-coded variable dumps on the screen depending on whether a 'debug' cookie is present.

0114PHP

Since Jan 11Pushed 12y ago2 watchersCompare

[ Source](https://github.com/Regulus343/Exterminator)[ Packagist](https://packagist.org/packages/regulus/exterminator)[ RSS](/packages/regulus-exterminator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Exterminator
============

[](#exterminator)

**A simple debugging composer package for Laravel 4 that allows you to output color-coded variable dumps on the screen depending on whether a 'debug' cookie is present.**

Variable dumps are color-coded and just as descriptive as PHP's `var_dump()` method. You may hide the Exterminator window by clicking the "Hide" button and may single-click on any variable to select it in its entirety. These things help to make Exterminator much nicer to work with than just a crude `var_dump`.

Using the `Dbg::display()` method, you can dump all of your variables at the end of your view to prevent any data output from breaking your rendered HTML page. They variable output is also contained in HTML markup and use various Javascript methods for enhanced use as described above.

- [Installation](#installation)
- [Enabling Exterminator](#enabling)
- [Usage](#usage)

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

[](#installation)

To install Exterminator, make sure "regulus/exterminator" has been added to Laravel 4's `composer.json` file.

```
"require": {
	"regulus/exterminator": "dev-master"
},

```

Then run `php composer.phar update` from the command line. Composer will install the Exterminator package. Now, all you have to do is register the service provider and set up Exterminator's alias in `app/config/app.php`. Add this to the `providers` array:

```
'Regulus\Exterminator\ExterminatorServiceProvider',

```

And add this to the `aliases` array:

```
'Dbg' => 'Regulus\Exterminator\Exterminator',

```

You may use 'Exterminator', 'Debug', or another alias, but 'Dbg' is recommended for the sake of simplicity. Exterminator is now ready to go.

Enabling Exterminator
---------------------

[](#enabling-exterminator)

To enable Exterminator, navigate to `http://site.com/debug/debug1913`. This will enable the viewing of Exterminator's data output by placing a cookie on your machine. Note that the `debug1913` part is your Exterminator access code and can be configured in `config.php`.

Usage
-----

[](#usage)

**Basic usage:**

To display a variable after you have set your `debug` cookie:

```
$var = array(
	'boolean' => true,
	'number'  => 3.43,
	'string'  => 'Testing Exterminator',
	'array'   => array(
		'boolean' => false,
		'number'  => 5,
		'object'  => (object) array(
			'Number One',
			2,
			3.0,
		),
	),
);
Dbg::display($var);

```

**Displaying multiple variables:**

To display multiple variables, use Exterminator's "add" method, `Dbg::a()`:

```
Dbg::a($var);
Dbg::a($var2);

```

Then at in the footer of your website add a simple `Dbg::display()` with no arguments:

```

```

**Adding variable names to dumped variables:**

You can get the variable names to show up in the upper-right area of an outputted variable using PHP's `get_defined_vars()`. Please note that this may not work in all cases. Here is how to do it:

```
$definedVars = get_defined_vars();

Dbg::a($var, $definedVars);
Dbg::a($var2, $definedVars);

```

You can also set the variable name manually by passing a string as the second argument:

```
Dbg::a($var, 'var');

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b9fbf9ff50ea191fd9d3994c3aa294aad3c72e57e03fe534af815f7b50a70b26?d=identicon)[Regulus](/maintainers/Regulus)

---

Top Contributors

[![Regulus343](https://avatars.githubusercontent.com/u/967717?v=4)](https://github.com/Regulus343 "Regulus343 (32 commits)")

### Embed Badge

![Health badge](/badges/regulus-exterminator/health.svg)

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

###  Alternatives

[symfony/stopwatch

Provides a way to profile code

2.8k387.2M918](/packages/symfony-stopwatch)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k662.9k29](/packages/fruitcake-laravel-debugbar)[jokkedk/webgrind

Webgrind is a Xdebug profiling web frontend in PHP5. It implements a subset of the features of kcachegrind and installs in seconds and works on all platforms. For quick'n'dirty optimizations it does the job.

3.3k193.0k](/packages/jokkedk-webgrind)[koriym/printo

An object graph visualizer.

1421.8M2](/packages/koriym-printo)[soloterm/dumps

A Laravel command to intercept dumps from your Laravel application.

125285.7k3](/packages/soloterm-dumps)[beyondcode/helo-laravel

HELO Laravel debug helper

90360.1k](/packages/beyondcode-helo-laravel)

PHPackages © 2026

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