Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Php Dump Logger Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy for internal debugging tooling. 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).
  • Debugging workflow standardization for non-HTTP contexts. Its real value is where 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.
  • Platform floor and upgrade sequencing. Release 3.0.0 raises the supported PHP range to 8.3/8.4 and moves to 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.
  • Dependency-policy and lockfile decisions. A major version bump on a transitive-ish dev dependency is exactly the kind of change that surfaces in 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.
  • Security/logging review scope. Because the package's whole job is writing variable contents into log files, it belongs in any review of what may be written to logs (PII, tokens, request payloads) and in decisions about log retention, redaction, and whether the tool is enabled outside local/CI environments.
  • Not a customer-facing roadmap item. There is no user-visible capability here, no revenue path, and no meaningful differentiation. Treat it as developer-experience tooling with a cost/risk profile, not as a product feature.

When to Consider This Package

Consider it when most of the following hold:

  • You are on Laravel and the team already relies on dump()/dd() semantics; the migration cost is near zero conceptually.
  • A recurring share of debugging happens where response output is invisible: API clients, queued jobs, console commands, scheduled tasks, Docker/CI, remote or headless environments.
  • You want file-based, greppable output rather than a UI or a paid desktop client — i.e., you want to tail -f or ship logs to your existing aggregator.
  • You are comfortable on PHP 8.3+, and on 8.4 for 3.x given the 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.
  • You accept single-maintainer, small-surface risk and are willing to pin a version, and possibly vendor or fork, if the package goes quiet.
  • It is installed as a dev dependency and gated to non-production environments.

Look elsewhere when:

  • You are on PHP 8.1/8.2 or an older Laravel — stay on 2.1.x and treat 3.x as blocked until the platform moves.
  • You actually need request inspection, query timelines, exception tracking, or job/queue visibility — Laravel Telescope, Clockwork, or a profiler solve a much larger problem, and adopting this instead will disappoint.
  • You need interactive debugging (breakpoints, stack inspection) — that is Xdebug, not this.
  • You need vendor-backed support, SLAs, or a broad contributor base; a small utility package will not provide them. In that case, copying an equivalent helper into your own codebase is a defensible and arguably lower-risk choice.
  • You want to enable rich dumping in production — this is not a production observability tool and should not be positioned as one.

How to Pitch It (Stakeholders)

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.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log