PHPackages                             jewei/dumpdump - 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. jewei/dumpdump

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

jewei/dumpdump
==============

PHP var\_dump like a boss.

1.0.1(10y ago)126MITPHPPHP &gt;=5.3.0

Since Mar 17Pushed 10y ago1 watchersCompare

[ Source](https://github.com/jewei/dumpdump)[ Packagist](https://packagist.org/packages/jewei/dumpdump)[ RSS](/packages/jewei-dumpdump/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

dumpdump
========

[](#dumpdump)

PHP var dump to file.

Sometimes you cannot `echo'';var_dump($var);die;` to send debug info to the browser window. Especially during AJAX request or cron run. In such cases, you can send the debug info to a separate channel, plain file. Imagine now you can use console to `tail -f debug.txt`.

This is not a full-fledge debugger. If you're looking for one, you may want to check these out:

- xdebug
- firephp
- [kint](http://raveren.github.io/kint/)
- [tracy](https://tracy.nette.org/)

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

[](#installation)

#### Install globally via Composer.

[](#install-globally-via-composer)

```
composer global require jewei/dumpdump

```

Add to php.ini so PHP can autoload.

```
auto_prepend_file = ${HOME}/.composer/vendor/autoload.php

```

#### Use the Git repository.

[](#use-the-git-repository)

Git clone this repository and `require '/path/to/src/Dump.php';`.

Usage
-----

[](#usage)

```
