jakub-onderka/php-var-dump-check
Abandoned CLI tool that scans PHP projects for leftover debug dumps (var_dump, print_r, var_export, plus Tracy/Ladybug/Symfony/Laravel/Doctrine/Zend helpers). Supports excludes, extension filtering, and optional colored output via console highlighter.
var_dump, dd, or framework-specific debugging calls left in production code, reducing manual code reviews and improving deployment reliability.dd, dump), Symfony (VarDumper), and other frameworks, ensuring consistency across multi-framework codebases.var_dump).For Executives:
"This tool automates the cleanup of debugging code—like var_dump or Laravel’s dd—that often slips into production, causing performance issues or exposing sensitive data. By integrating it into our CI pipeline, we can catch these errors early, reduce post-launch fires, and improve code quality with minimal effort. It’s a low-cost, high-impact fix for a common pain point, especially for teams using Laravel or Symfony."
For Engineering/DevOps: *"We can add a pre-deployment check to block commits/pushes containing forgotten debug dumps. It supports our stack (Laravel/Symfony) and runs in seconds via CLI. Example:
./vendor/bin/var-dump-check --laravel --symfony --exclude tests .
This aligns with our goal to automate manual QA tasks. The alternative is a maintained fork or building our own scanner—this gives us 80% of the value with zero maintenance."*
For Developers:
*"No more ‘Why is my API slow?’ mysteries caused by leftover var_dump calls. This tool scans your codebase and flags them—just run it locally or in CI. It even handles Laravel’s dd and Symfony’s VarDumper. Example output:
Forgotten dump 'dd' found in ./src/Controller/UserController.php:42
It’s like a spellcheck for debugging code."*
How can I help you explore Laravel packages today?