php-packages / dumpy
Better var_dump for PHP.
1.0.2
2015-04-21 14:57 UTC
Requires (Dev)
- bound1ess/essence: ~1
- phpunit/phpunit: ~4
This package is not auto-updated.
Last update: 2024-10-26 16:18:04 UTC
README
Better var_dump for PHP.
Features
- pretty configurable (one-configuration-per-instance)
- fully tested (PHPUnit as a test runner + Essence as BDD assertion framework)
- documented (comments in source code + this readme file)
- decent source code, unlike many solutions I've seen previously
Installation
composer require php-packages/dumpy
Usage
It's pretty darn simple.
Configuration
$dumpy = new PhpPackages\Dumpy\Dumpy; $dumpy->configure("optionName", "optionValue"); $dumpy->getConfigOption("optionName"); # => "optionValue"
Dumping
$dumpy = new PhpPackages\Dumpy\Dumpy; // Configure Dumpy... $stringRepresentation = $dumpy->dump($anyValue);
License
The MIT license (MIT).