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 Var Dump Check Laravel Package

guni/php-var-dump-check

A lightweight static analysis tool that scans PHP codebases for leftover debug calls such as var_dump(), print_r(), dd(), and dump(), helping catch them before they reach production. Easy to wire into CI for automated checks.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Release-readiness gating: Establishes a hard CI check that fails builds when debug artifacts (var_dump, print_r, dd, dump, etc.) survive into a commit — a cheap, deterministic guardrail against a class of defects that is otherwise caught only by manual review or, worse, by users in production.
  • Build vs. buy vs. borrow: Quantifies whether a dedicated dependency is warranted versus a 5-line grep/regex step in CI or an existing PHP_CodeSniffer/PHPStan rule. Given near-zero adoption signals (0 stars, 0 dependents, GitLab-hosted, unmaintained risk), this is a "borrow the idea, not the package" decision unless the code is small and audited.
  • Tech-debt and legacy-onboarding roadmap: A single scan over an inherited codebase produces a concrete, defensible metric ("N debug statements across M files") that can be used to size a cleanup epic and track burn-down.
  • Developer Experience investment: Positions automated hygiene checks as part of the inner-loop tooling budget (pre-commit hooks, GrumPHP, CaptainHook, Laravel Pint, CI lint stage) rather than a one-off script someone remembers to run.
  • Framework-standard alignment: Informs whether to standardize on framework-native tooling — e.g., Laravel's own dd()/dump() semantics and existing linter ecosystems — versus introducing a single-purpose external package into the dependency tree.
  • Risk/severity triage: Supports classifying debug-output leakage (information disclosure, response corruption, performance overhead, broken JSON/API payloads) as a preventable defect class with a low-cost control, which strengthens the case for a policy rather than per-PR vigilance.

When to Consider This Package

Reasonable fit when:

  • You have a small, self-contained PHP/Laravel service where a single-purpose binary is acceptable and the total dependency surface is already small.
  • You need a fast, no-configuration check today and lack the appetite to author a custom rule or sniff.
  • You are doing a one-off audit of a legacy or inherited repository, where a throwaway scanner is sufficient and long-term maintenance is irrelevant.
  • Your CI already runs Composer scripts and you want a composer lint:dump entry point with minimal wiring.
  • You are willing to vendor or fork the tool after a short code review, accepting ownership internally.

Look elsewhere when:

  • Maintenance and trust matter. Zero stars, zero dependents, and a GitLab-only home are strong signals of abandonment risk. Any package in a production pipeline needs a maintenance story; here you should assume you own it.
  • You already have static analysis. SlevomatCodingStandard debug sniffs via PHP_CodeSniffer, PHPStan custom rules, or Rector rule sets cover this and dozens of adjacent problems with one tool and one upgrade path.
  • You need framework awareness. Laravel-specific dd(), dump(), ray(), and Blade-level artifacts need rules tuned to that ecosystem; a generic dumper scanner will under-detect.
  • You need policy, not just detection. Suppression annotations, baseline files, severity levels, autofix, and SARIF/reporting integrations are table stakes for a lint gate at scale — verify these exist before committing.
  • Compliance or supply-chain review applies. An unvetted, low-traffic GitLab dependency is a harder sell to security review than a well-known Packagist package.

Recommended posture: treat it as reference implementation, not a dependency. The detection logic is small; porting it into an existing linter or a CI regex step removes the third-party risk entirely at roughly the same cost.

How to Pitch It (Stakeholders)

For executives (one paragraph): Debug statements left in shipped code are a small but recurring defect class with outsized consequences — they can leak internal data structures to end users, corrupt API responses, and slow down requests. This package is a lightweight automated check that fails the build before such code reaches production. The concept is worth adopting; the specific dependency is not. Because it has effectively no community adoption or maintenance backing, we recommend implementing the same check inside tooling we already run — a few lines of CI configuration or an existing linter rule — capturing the benefit with zero new supply-chain risk and no ongoing ownership burden.

For engineering leads: The value is a deterministic, zero-tolerance CI gate on debug artifacts, wired into the existing pipeline as a lint step. Don't take the dependency as-is: review the source, confirm it covers your actual dumper surface (var_dump, print_r, dd, dump, ray, Blade templates), and check that it supports a baseline or ignore mechanism so legacy hits can be burned down incrementally rather than blocking all work on day one. Preferred path is to fold the rule into PHP_CodeSniffer, PHPStan, or GrumPHP so the team has one lint story instead of five.

For security/compliance: This is a preventive control against inadvertent information disclosure via debug output. It addresses a real but low-severity risk with a very low implementation cost, and can be delivered without adding an unmaintained third-party package to the build chain.

Ask: Approve the control (a CI gate for debug artifacts), one engineer-day to implement it against existing tooling, and a policy that new services ship with the gate enabled by default.

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.
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
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator