shipmonk-rnd/dead-code-detector
๐ PHP unused code detection via PHPStan extension. Detects dead cycles, supports libs like Laravel, Symfony, Twig, Doctrine, PHPUnit etc. Can automatically remove dead PHP code. Able to detect dead code used only in tests. Finds unused methods, constants, properties and enum cases.
Star History
Momentum
+13
STARS ยท LAST 30 DAYS
1
PER DAY
#282
MOST-STARRED PHP
| Window | 7 days | 30 days | 90 days |
|---|---|---|---|
| Stars gained | +7 | +13 | +90 |
| Per day | 1 | 1 | 1 |
| Forks gained | +1 | +3 | +10 |
dead-code-detector gained 13 stars in the last 30 days, about 1 a day, and now has 518. It is about 3 years old and has averaged roughly 173 stars a year. It ranks #282 among PHP repositories and #3,973 across all languages on GitHubRepo.
Trending Record
5
DAYS ON TRENDING
#2100
BEST RANK
Sep 25, 2026
FIRST APPEARANCE
Active
STATUS TODAY
dead-code-detector has maintained a continuous presence across global trending indexes, peaking at #2100. Below is the 30-day activity profile:
๐ก Overview
dead-code-detector is an open-source project written in PHP: ๐ PHP unused code detection via PHPStan extension. Detects dead cycles, supports libs like Laravel, Symfony, Twig, Doctrine, PHPUnit etc. Can automatically remove dead PHP code. Able to detect dead code used only in tests. Finds unused methods, constants, properties and enum cases.
Engineered for speed, consistency, and developer ease, it solves common hurdles in dead, dead-code-removal, php. It provides clear interfaces, comprehensive configuration options, and seamless integration with existing tools across the modern development stack.
โก Key Features
Optimized execution pipeline written in PHP for predictable speed.
Zero-friction configuration with comprehensive sensible defaults out of the box.
Cross-platform runtime support across Linux, macOS, and Windows environments.
Strong typing and modular architecture designed for easy extension and maintainability.
Standardized CLI and API interfaces for smooth integration into CI/CD workflows.
Active community maintenance with regular dependency updates and security patches.
๐ฅ Installation
$ git clone https://github.com/shipmonk-rnd/dead-code-detector.git
cd dead-code-detector
โ System Requirements
Platforms
- โข macOS
- โข Linux
- โข Windows
Runtime & Dependencies
PHP >= 8.2 with Composer
Architecture
x86_64, ARM64 (Apple Silicon & Graviton)
๐ง How It Works
dead-code-detector coordinates its core functionality through a modular PHP pipeline. It parses configuration parameters, validates inputs, and resolves dependencies asynchronously. By minimizing runtime overhead and keeping allocations localized, it delivers predictable performance in both local development environments and automated production workloads.
๐ฏ Production Use Cases
Production System Integration
Embed dead-code-detector into PHP backend services to handle core application logic.
CI/CD Automated Pipelines
Run automated validation, builds, and integration suites during deployments.
Developer Tooling & Workflows
Accelerate developer onboarding with pre-configured project utilities.
Open Source Extension
Fork and customize internal modules under the repository's open MIT license.
๐ Getting Started
Install dead-code-detector using your package manager: `git clone https://github.com/shipmonk-rnd/dead-code-detector.git`
Initialize your project workspace or configuration file for dead-code-detector.
Import dead-code-detector into your codebase or invoke it directly from your terminal.
Execute your test suite or run `dead-code-detector --help` to verify successful setup.
๐ Strengths
โ ๏ธ Considerations
โ Alternatives & Direct Competitors
๐ฅ Who Should Use This
Developers and engineering teams building with PHP, seeking reliable, tested, and actively maintained tooling for production workloads.
๐ Nearby in the Rankings
shipmonk-rnd/dead-code-detector is currently ranked #3,973 by stars across every repository tracked on GitHubRepo. These are adjacent projects:
| Rank | Repository | Language | Stars | Action |
|---|---|---|---|---|
| #3,967 | jbuehler23/jackdaw | Rust | โ 520 | Compare โ |
| #3,969 | EverestAPI/Everest | C# | โ 519 | Compare โ |
| #3,969 | julianxhokaxhiu/FFNx | C++ | โ 519 | Compare โ |
| #3,969 | modal-labs/modal-client | Python | โ 519 | Compare โ |
| #3,969 | connectrpc/connect-rust | Rust | โ 519 | Compare โ |
| #3,973 | shipmonk-rnd/dead-code-detector This Project | PHP | โ 518 | |
| #3,973 | Zesty0wl/mac-performance-monitor | Swift | โ 518 | Compare โ |
| #3,975 | ericflo/django-pagination | Python | โ 517 | Compare โ |
| #3,975 | aws-amplify/amplify-swift | Swift | โ 517 | Compare โ |
| #3,975 | fcaronte/KingInstaller | Kotlin | โ 517 | Compare โ |
| #3,978 | microsoft/LangChain4j-for-Beginners | Java | โ 516 | Compare โ |
Frequently Asked Questions
What does dead-code-detector do? +
๐ PHP unused code detection via PHPStan extension. Detects dead cycles, supports libs like Laravel, Symfony, Twig, Doctrine, PHPUnit etc. Can automatically remove dead PHP code. Able to detect dead code used only in tests. Finds unused methods, constants, properties and enum cases.
What language is dead-code-detector written in? +
The primary language is PHP. Topics include: dead, dead-code-removal, php, phpstan, phpstan-extension.
Is dead-code-detector actively maintained? +
Yes, the last recorded push was on Sep 25, 2026 with 16 open issues being tracked.
How many stars does dead-code-detector have? +
dead-code-detector has 518 stars and 32 forks on GitHub.
How does dead-code-detector rank among GitHub repositories? +
With 518 stars, shipmonk-rnd/dead-code-detector is ranked #3,973 globally across all repositories tracked on GitHubRepo and #282 among PHP projects.
What license is dead-code-detector distributed under? +
The repository reports a MIT license. Always verify the repository LICENSE file for legal terms.