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

Phpdcd Laravel Package

sebastian/phpdcd

PHP Dead Code Detector (phpdcd) is a command-line tool that scans PHP codebases for unused functions and methods, helping teams find dead code to remove. Part of Sebastian Bergmann's tooling, it is now archived and largely superseded by modern static analysis tools.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Tech-debt and modernization roadmap: Use phpDCD as a quick exploratory audit to find unused PHP functions/methods before refactors, framework upgrades, service extraction, or major releases.
  • Build vs. buy vs. borrow: Treat it as a reference implementation and requirements benchmark, not a dependency. The archived status, NOASSERTION license, and zero dependents make it unsuitable as a foundation for a product or production CI gate.
  • Engineering productivity investment: Validate demand for dead-code detection in the PHP/Laravel toolchain; use findings to justify a maintained static-analysis tool, internal quality gate, or CI plugin.
  • Legacy-code due diligence: Support pre-acquisition or pre-migration code-health reviews by producing a first-pass list of potentially dead code for manual validation.
  • Tooling portfolio prioritization: If building internal developer tooling, use phpDCD’s capability set as a baseline: dead-method detection, CLI output, low-friction adoption, and CI friendliness.

When to Consider This Package

Consider phpDCD only when:

  • You need a one-off, non-production audit of a PHP codebase and can manually validate results.
  • The team accepts an archived, unmaintained tool with no guaranteed compatibility with modern PHP/Laravel versions.
  • Legal has explicitly cleared the NOASSERTION license for your intended use.
  • You will isolate it in a sandbox or internal script and will not expose it as a product dependency.
  • You need a reference point for evaluating requirements or competing maintained analyzers.

Look elsewhere when:

  • You need a production CI quality gate, ongoing maintenance, security patching, or vendor accountability.
  • License clarity is required for commercial distribution or hosted product use.
  • You need high accuracy in Laravel-heavy codebases where service container bindings, facades, events/listeners, macros, Eloquent magic, Blade templates, and dynamic dispatch can create false positives or false negatives.
  • You need framework-aware reachability analysis, IDE integration, policy enforcement, or supported PHP-version coverage.
  • You require active community validation; zero dependents is a weak ecosystem signal.

How to Pitch It (Stakeholders)

For executives: We evaluated phpDCD as a low-cost way to reduce PHP maintenance burden by finding dead code. It validates demand for code-health tooling, but it is archived, has an unclear license, and has no dependent ecosystem. Recommendation: do not adopt it as a product dependency or production gate; use it only for limited internal audits or as a requirements reference, and invest in a maintained analyzer if the ROI is confirmed.

For engineering: phpDCD can be useful as a sandboxed CLI audit or a reference for dead-code detection requirements. Do not wire it into CI without a fork, license review, and ownership plan. Validate output manually, especially in Laravel codebases with dynamic dispatch and container resolution. If the capability matters, define requirements and select or build on a maintained static-analysis foundation.

For legal/security: The package is archived and declares NOASSERTION, so license rights are unclear. Treat it as unsuitable for commercial embedding or hosted product use until reviewed and cleared. Lack of maintenance also means no security patching or compatibility guarantees.

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.
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle
glavweb/extra-bundle
glavweb/api-bundle
glavweb/admin-bundle
adachsoft/api-version-bundle
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
cgv/localized-resource