2017 © Pedro Peláez
 

framework dumpster

A small PHP object dump utility.

image

ericsalerno/dumpster

A small PHP object dump utility.

  • Monday, January 30, 2017
  • by ericsalerno
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

dumpster

Latest Stable Version License Build Status, (*1)

PHP Object Dump Utility. We all know the only way to debug your code is to step-through it with a debugger, like xdebug. Every now and then you end up in a situation where for some reason you can't and you have to fall back on your baser instincts and dump out object data. But var_dump and print_r can be ugly or overwhelming. That's where dumpster comes in., (*2)

While some may think that this was called dumpster because it dumps data out. Rather, it's named after a "dumpster fire", which is often what applications that use this method of debugging end up as. Always use a real debugger if you can!, (*3)

Object Dump Usage

You can dump the contents of an object simply by creating a dump object and performing output() on it. For example:, (*4)

$d = new \Dumpster\Dump($myDumpableObject);
$d->output();

Or you can use the static facade to make things easier., (*5)

\Dumpster\Dump::object($myDumpableObject);

This should work with all scalar, array, or object values., (*6)

Here is an example of what the output may look like:, (*7)

Image of Example, (*8)

Environment-Level Dump Suppression

You can turn-off the Dumpster utility on an entire environment if the environment variable DUMPSTER_SUPPRESS is a non-zero value. This can help you avoid accidental debug dumps for an application in, for example, a production environment., (*9)

The Versions

30/01 2017

dev-master

9999999-dev http://www.ericsalerno.com/

A small PHP object dump utility.

  Sources   Download

MIT

The Requires

 

The Development Requires

30/01 2017

v1.0.0

1.0.0.0 http://www.ericsalerno.com/

A small PHP object dump utility.

  Sources   Download

MIT

The Requires

 

The Development Requires

30/01 2017

v1.0.1

1.0.1.0 http://www.ericsalerno.com/

A small PHP object dump utility.

  Sources   Download

MIT

The Requires

 

The Development Requires

30/01 2017

v1.1.0

1.1.0.0 http://www.ericsalerno.com/

A small PHP object dump utility.

  Sources   Download

MIT

The Requires

 

The Development Requires