salibhdr/php-dump-logger
A lightweight PHP debugging utility for dumping variables, arrays, and objects to log files instead of the page. It helps inspect application state cleanly, keep debug output out of responses, and simplify troubleshooting in Laravel and plain PHP projects.
php-dump-logger is a small, single-purpose utility that redirects dump()-style output to log files instead of the HTTP response. It answers the recurring "do we write our own debug helper or take a dependency?" question — the scope is narrow enough that the realistic alternatives are "adopt this," "copy ~a few hundred lines into our app," or "standardize on a broader tool" (Telescope, Ray, Clockwork, Xdebug).dd()/dump() are useless: API-only endpoints, queued jobs, artisan commands, scheduler tasks, and containerized/staging environments without an attached debugger. If a meaningful share of your team's defect triage happens in those contexts, this is a productivity lever worth naming in a platform/tooling roadmap item.symfony/var-dumper ^8 — and Symfony 8 components require PHP 8.4. That makes this release a hard platform gate, not a routine bump. It directly informs: which services can adopt 3.x, whether your CI matrix and container base images are on 8.4, and whether the upgrade rides along with a broader PHP 8.4 migration or blocks on it.composer update diffs and can silently drag symfony/var-dumper (and, via it, other Symfony constraints) forward. Useful input to a "dev dependencies we intentionally pin" policy.Consider it when most of the following hold:
dump()/dd() semantics; the migration cost is near zero conceptually.tail -f or ship logs to your existing aggregator.symfony/var-dumper ^8 constraint. Verify the actual constraint in composer.json before planning: if it truly only allows ^8, 3.0.0 requires PHP 8.4 at runtime.Look elsewhere when:
For executives (one paragraph). This is a free, open-source developer utility that makes debugging faster in the parts of our system that don't have a visible screen — background jobs, scheduled tasks, API services, and containerized environments. It is not customer-facing and carries no revenue or roadmap impact. The only decision that reaches your level is timing: the new major version requires PHP 8.4, so adopting it should be bundled into the PHP 8.4 upgrade we are already planning rather than run as its own initiative. Risk is low and contained — it is a development-only dependency from a single maintainer, so we pin the version and keep the option of replacing it with a small in-house helper.
For engineering leads. Low-cost, narrow-scope adoption for teams on PHP 8.4; expect a near-zero learning curve since it preserves dump() ergonomics. Two things to handle deliberately: (1) 3.0.0 is a breaking platform change — it drops older PHP support and pins symfony/var-dumper to ^8, which will affect lockfiles and may pull other Symfony constraints forward; schedule it with the PHP 8.4 migration, not before, and confirm the exact constraint in composer.json before committing. (2) Log hygiene — anything dumped lands in log files, so apply the same redaction and retention rules as other logs, and keep the package restricted to local/CI via dev-dependency scoping and environment guards. Given the single-maintainer profile, pin the version and keep the helper small enough to vendor if maintenance lapses.
How can I help you explore Laravel packages today?