php-parallel-lint/php-var-dump-check
CI-friendly tool that scans your PHP code for leftover debugging statements like var_dump(), print_r(), die()/dd() and similar. Helps keep accidental dumps out of production by failing builds when debug output is found.
This package is a simple static analysis tool to scan PHP source code for forgotten var_dump(), print_r(), dd(), die(var_dump(...)), and similar debugging calls that should not be present in production code. Start by installing it via Composer:
composer require --dev php-parallel-lint/php-var-dump-check
Then run it from the CLI:
./vendor/bin/var-dump-check src
It outputs paths and line numbers where debugging dumps were found. Ideal for CI pipelines to prevent debug artifacts from reaching production.
.github/workflows/ci.yml) to fail builds if dumps are detected.--filter "*.php", --exclude build/) or config file (var-dump-check.json) to ignore specific directories or file patterns (e.g., test fixtures)."lint:var-dump": "var-dump-check app") for quick local checks.composer update over pinned versions unless pinned for stability.--exclude or config to whitelist test directories.1 if dumps found (non-zero = failure), 0 otherwise — suitable for CI logic.--extended or custom checks.var-dump-check.json in project root to define defaults (e.g., { "paths": ["src"], "exclude": ["tests"] }).How can I help you explore Laravel packages today?