alexeyplodenko / symfony-php-dumper
The package provides a simple dump function, based on the Symfony VarDumper package, to output the variables and stop execution.
Installs: 1 110
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/alexeyplodenko/symfony-php-dumper
Requires
- php: >=8.2
- symfony/var-dumper: ^7.0
README
The package provides a simple dump d($yourFirstVar, $yourSecondVar,..); function, based on the Symfony VarDumper package, to output the variables and stop execution. The output happens to the browser and console at the same time.
Motivation
- To have an output to both the browser and CLI (like Docker logs) at the same time.
- To have a stack trace to be able to find where I have left the
d()function. - To ignore
d()on production and staging environments. So if the function is still there in the code, it would not affect the runtime. - To have a compact debug output, not affected by any HTML or CSS.

