Pretty dump variables library. Easy to use with global shortcut function aliases.
Morgo\Dumpf::dump($x, $y);
Morgo\DumpfPair::dump('label_for_x', $x)
$var1 = "Some string";
$var2 = 2 * 5;
_d($var1, $var2);
_dp("String", $var1, "Number", $var2);
string (11): Some string
integer: 10
String = string (11): Some string
Number = integer: 10
Add to composer.json following piece of config:
"repositories": {
"dumpf": {
"type": "path",
"url": "../dumpf",
"options": {
"symlink": true
}
}
},
Then you can normally require
composer require morgo/dumpf @dev