|Last Updated|| ||Ratings|| ||Unique User Downloads|| ||Download Rankings|
|2017-07-11 (1 month ago) ||Not enough user ratings||Total: 335 This week: 9||All time: 6,827 This week: 64|
This class can output variable values in a colorized way.
It can take a variable value and output HTML to displays it like the PHP var_dump function but highlights with colors different types of value.
For objects and arrays it traverses the contained elements recursively.
The class can also output variable values to a console as text without colors.
|PHP provides nice functions to dump the type and values of a variables like var_dump and var_export.
This package provides an enhanced version of the var_dump function by colorizing the different values according their types.
Pretty Data Dump
A pretty version of php var_dump. This class displays structured information about one or more expressions that includes its type and value.
Dump implementation in 5.3 is a bit different from 7.0. All new functionality and fixes are implemented on 7.1 though some might be extended to 5.3.
You can download the Latest release version as a standalone, alternatively you can use Composer
$ composer require ghostff/pretty_data_dump
new Dump7(...); # For PHP 7+
new Dump5(...); # For PHP 5+
private $string = 'string';
protected $int = 10;
public $array = [
'foo' => 'bar'
protected static $bool = false;
$string = 'Foobar';
$array = ['foo', 'bar'];
$int = 327626;
$double = 22.223;
$null = null;
$bool = true;
new Dump5(new Foo, $string, $array, $int, $double, $null, $bool, [
'foo' => 'bar',
'bar' => 'foo',
'foo' => 'foobar',
2 => 'foo',
'foo' => [
'barbar' => 55,
'foofoo' => false,
'foobar' => null,
new Dump5(1 == '1', 1 === '1');
Replacing predefined colors:
new Dump5(false, true);
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.