PHPackages                             ivoba/stop - 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. ivoba/stop

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

ivoba/stop
==========

nice output for debug functions for PHP 5.3

0.2.1(12y ago)1042.4k↓69.7%1[2 issues](https://github.com/ivoba/stop/issues)5MITPHPPHP &gt;=5.3.0

Since Mar 12Pushed 12y ago1 watchersCompare

[ Source](https://github.com/ivoba/stop)[ Packagist](https://packagist.org/packages/ivoba/stop)[ Docs](http://github.com/ivoba/stop)[ RSS](/packages/ivoba-stop/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (5)Used By (5)

Stop
====

[](#stop)

Stop is a lightweight Dumper for PHP 5.3+ , thus a replacement for `echo '';print_r($var);exit;`

[![Build Status](https://camo.githubusercontent.com/46a2222877449e7e24d93c6f63b472485233fc6039d8fbb17f1db55771c25718/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f69766f62612f73746f702e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/ivoba/stop)[![Total Downloads](https://camo.githubusercontent.com/5927a98cd319dddff3c8475acf86083be0d660534b713f96ea8b270cbf996b16/68747470733a2f2f706f7365722e707567782e6f72672f69766f62612f73746f702f646f776e6c6f6164732e706e67)](https://packagist.org/packages/ivoba/stop)[![Dependency Status](https://camo.githubusercontent.com/4c6e88d6f2ee9fdac38f50fc66254c687bf6b02b59266ceed5c1013dfc69daa2/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f7068702f69766f62613a73746f702f6d61737465722f62616467652e706e67)](https://www.versioneye.com/php/ivoba:stop/master)

During developing pretty often i found myself typing: `echo '';print_r($var);exit;` or `var_dump($var);exit;`

So this lib provides:

- shortcut functions
- some more infos as File, Line &amp; Memory
- some nicer rendering with Twitter Bootstrap,
- options for return or continue &amp; hide which will print to javascript console
- disable Stop for prod env
- autoloading
- extensibility, if youd like to use jqueryUI f.e just subclass the Dumper and set the class
- context awareness: if you are in console it will render in text mode, if in ajax mode it will render in json mode
- dumper for json strings
- stop\_type as a better version of `var_dump(get_class($var));exit;`

Its pretty lightweight since it basically just uses PHP functions plus some sugar. If you need more power have a look at:  or

Install
-------

[](#install)

via composer, put this in your require block:

```
"ivoba/stop": "dev-master"

```

then

```
composer update ivoba/stop

```

Using Stop
----------

[](#using-stop)

\###Functions: By default, resp. via composer install, Stop will include global functions to ease access to the debug methods

this is probably the fastest way with or without IDE Autocompletion.
If you also have functions named **stop** or **stop\_dump** in your project: **rename them, dude! No mercy!** or use the class ;)

this will output print\_r($var) in a code block and will exit the script:

`stop($var);` or the shortcut `_S($var);`

this will output var\_dump($var) in a code block and will exit the script:

`stop_dump($var);` or the shortcut `_SD($var);`

\####Options There are 3 options that can be passed as parameters:

- $continue: if this is true the script will not exit, default is false
- $hide: if this is true it will print to javascript console, default is false
- $return: if this is true the script will return the output, default is false

Shortcut functions for options:

- `_SG($var);` Stop and Go! (resp. print\_r)
- `_SGH($var);` Stop and Go and Hide! (resp. print\_r)
- `_SDG($var);` Stop Dump and Go! (resp. var\_dump)
- `_SDGH($var);` Stop Dump and Go and Hide! (resp. var\_dump)
- `_SJ($json);` Stop Dump as Json! (decodes a json string and send it inside the dump object as json to the browser. Use browser addons like JSONovich for pretty rendering.)
- `_ST($var);` StopType! (resp. get\_type | get\_class &amp; class\_uses &amp; class\_implements &amp; class\_parents)
- `_STG($var);` StopType and Go! (resp. get\_type | get\_class &amp; class\_uses &amp; class\_implements &amp; class\_parents)

\###Static Class Methods:

```
   use \Stop\Stop;
   Stop::it($var, \Stop\Dumper::PRINT_R, $continue, $hide, $return);
   Stop::dump($var, $continue, $hide, $return);
   Stop::print_r($var, $continue, $hide, $return);

```

\###OO Style:

```
    $Stop = new \Stop\Dumper($hide, $continue, $return);
    $Stop->printr($var);
    $Stop->dump($var);

```

Requirements
------------

[](#requirements)

PHP &gt; 5.3 nothing more
I recommend however to install XDebug for nicer var\_dump rendering.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity51

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.

###  Release Activity

Cadence

Every ~38 days

Total

3

Last Release

4422d ago

### Community

Maintainers

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

---

Top Contributors

[![ivoba](https://avatars.githubusercontent.com/u/471254?v=4)](https://github.com/ivoba "ivoba (27 commits)")

---

Tags

debugdumpprint\_rvar\_dumpdumper

### Embed Badge

![Health badge](/badges/ivoba-stop/health.svg)

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

###  Alternatives

[jbzoo/jbdump

Script for debug and dump PHP variables and other stuff. This tool is a nice replacement for print\_r() and var\_dump() functions.

211.1M3](/packages/jbzoo-jbdump)[leeoniya/dump-r

a cleaner, leaner mix of print\_r() and var\_dump()

12368.9k5](/packages/leeoniya-dump-r)[php-sage/sage

☯ Insightful PHP debugging assistant.

5748.2k7](/packages/php-sage-sage)[mmucklo/krumo

KRUMO - version 2.0 of print\_r(); and var\_dump(); (with new updates)

94171.6k6](/packages/mmucklo-krumo)[kktsvetkov/krumo

Krumo is a debugging tool, which displays structured information about any PHP variable. It is a nice replacement for print\_r() or var\_dump() which are used by a lot of PHP developers.

8362.2k](/packages/kktsvetkov-krumo)

PHPackages © 2026

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