Skip to content

Instantly share code, notes, and snippets.

@nicolas-grekas
Last active October 29, 2015 22:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicolas-grekas/b72f99b3dac17602730b to your computer and use it in GitHub Desktop.
Save nicolas-grekas/b72f99b3dac17602730b to your computer and use it in GitHub Desktop.
Global Debug Helpers for PHP
{
"name": "nicolas-grekas/debug-helpers",
"description": "Global Debug Helpers for PHP",
"require": {
"symfony/var-dumper": "2.8.*@dev"
},
"authors": [
{
"name": "Nicolas Grekas",
"email": "p@tchwork.com"
}
],
"autoload": {
"files": ["debug-helpers.php"]
}
}
<?php
function d()
{
call_user_func_array('dump', func_get_args() + [null]);
}
function dd()
{
call_user_func_array('dump', func_get_args() + [null]);
die();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment