PHPackages                             marmotz/dumper - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. marmotz/dumper

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

marmotz/dumper
==============

A pretty variable dumper for HTML &amp; cli

97.8kPHP

Since Oct 22Pushed 12y agoCompare

[ Source](https://github.com/marmotz/Dumper)[ Packagist](https://packagist.org/packages/marmotz/dumper)[ RSS](/packages/marmotz-dumper/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Dumper
======

[](#dumper)

A pretty variable dumper for HTML &amp; cli.

[![Build Status](https://camo.githubusercontent.com/338935cbff4b391482669ed7aa3e57aa5ce443aadfc4e5001f5245ba6dab2a8b/68747470733a2f2f7472617669732d63692e6f72672f6d61726d6f747a2f44756d7065722e706e67)](https://travis-ci.org/marmotz/Dumper)

Installation with composer
--------------------------

[](#installation-with-composer)

```
{
    "require": {
        "marmotz/dumper": "dev-master"
    }
}
```

In most of the cases you don't need Dumper in your production environment.

```
{
    "require-dev": {
        "marmotz/dumper": "dev-master"
    }
}
```

Usage
-----

[](#usage)

Include composer autoloader in your project and use `dump()` function.

```
require_once __DIR__ . '/vendor/autoload.php';

dump($_SERVER);
```

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

[](#configuration)

You can limit the depth of the dump by using setMaxLevelOfRecursion function like this:

```
Marmotz\Dumper\Dump::setMaxLevelOfRecursion(5);
```

Output
------

[](#output)

Dumper self-determines output type between HTML and cli.

With following code:

```
