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.
sebastian/phpdcd is a dev-time CLI static-analysis tool, not an application library. It fits Laravel only as an optional Composer dev dependency or CI job; it should not enter runtime, production images, or application architecture.NOASSERTION license requiring legal review, legacy parser behavior, and high false-positive potential in Laravel’s dynamic patterns: service container bindings, facades, Eloquent magic, events/listeners, routes, policies, Blade/Livewire references, and convention-based discovery.app/, src/, or selected paths while excluding vendor/, storage/, generated code, and framework entrypoints.composer.json. Prefer an isolated tooling image or separate Composer project to avoid dependency conflicts with the Laravel lockfile.How can I help you explore Laravel packages today?