jiboule / ddump
Dump your variables and stop the execution of the script.
Installs: 171
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:package
Requires
- php: >=5.6
- symfony/var-dumper: ^3.4
README
This is just an overlay to the Symfonys' var-dumper component to dump variable(s) and stop the script execution right away.
Installation
$ composer require --dev jiboule/ddump
The --dev option is important as you don't wanna use dump in production.
Usage
dump($bar); // the var-dumper function dumps the var, below code will be executed ddump($myVar); // dumps the var // nothing below will be executed
You can also dump several variables
ddump($foo, $bar, $another);