Skip to content

tonda13/dumpf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dumpf

Pretty dump variables library. Easy to use with global shortcut function aliases.

Usage

Morgo\Dumpf::dump($x, $y);

Morgo\DumpfPair::dump('label_for_x', $x)

Examples

$var1 = "Some string";
$var2 = 2 * 5;
_d($var1, $var2);
_dp("String", $var1, "Number", $var2);

Output

string (11): Some string
integer: 10
String = string (11): Some string
Number = integer: 10

How to call dev package through composer locally

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

About

Pretty var_dump and break points functions

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages