| Recommend this page to a friend! | 
| Info | Documentation | Reputation | Support forum | Blog | Links | 
| Ratings | Unique User Downloads | Download Rankings | ||||
| Total: 418 | All time:  6,421 This week: 35 | |||||
| Version | License | PHP version | Categories | |||
| pretty_data_dump 1.0.4 | BSD License | 5.3 | PHP 5, Debug, Console | 
| Description | Author  | |
This class can output variable values in a colorized way. Innovation Award 
 | 
A pretty version of php var_dump. This class displays structured information about one or more expressions that includes its type and value.
_Check out Dump7 for PHP 7+_
You can download the Latest release version as a standalone, alternatively you can use Composer
$ composer require ghostff/dump5
"require": {
    "ghostff/dump5": "^1.0"
}
class Foo
{
    private $string = 'string';
    protected $int = 10;
    public $array = array(
        'foo'   => 'bar'
    );
    protected static $bool = false;
}
$string = 'Foobar';
$array = array('foo', 'bar');
$int = 327626;
$double = 22.223;
$null = null;
$bool = true;
new Dump(new Foo, $string, $array, $int, $double, $null, $bool, array(
    'foo' => 'bar',
    'bar' => 'foo',
    array(
        'foo' => 'foobar',
        'bar_foo',
        2 => 'foo',
        'foo' => array(
            'barbar' => 55,
            'foofoo' => false,
            'foobar' => null,
        )
    )
));
new Dump(1 == '1', 1 === '1');
Replacing predefined colors:
# set($name, [$cgi_color, $cli_color]);
Dump::set('boolean', ['bb02ff', 'purple']);
CGI output:

CLI Posix output:

Windows user who are using command line tools like cmder can use the Dump::d method:
Dump::d(new Foo, $string, $array, $int, $double, $null, $bool, array(
    'foo' => 'bar',
    'bar' => 'foo',
    array(
        'foo' => 'foobar',
        'bar_foo',
        2 => 'foo',
        'foo' => array(
            'barbar' => 55,
            'foofoo' => false,
            'foobar' => null,
        )
    )
));
CLI Windows output:

| File | Role | Description | 
|---|---|---|
| Data | Auxiliary data | |
| Data | Auxiliary data | |
| Lic. | License text | |
| Data | Auxiliary data | |
| Data | Auxiliary data | |
| Doc. | Documentation | 
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. | 
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 100% | 
  | 
  | 
| User Ratings | User Comments (1) | ||||||||||||||||||||||||||||||||||
  | 
  | ||||||||||||||||||||||||||||||||||
| Applications that use this package | 
 If you know an application of this package, send a message to the author to add a link here.