johnatas-x/phpcpd
Laravel-friendly wrapper for PHP Copy/Paste Detector (PHPCPD) to spot duplicated code in your PHP projects. Run duplication checks from your tooling/CI and get actionable reports to reduce redundancy and improve maintainability.
Adopt if:
jscpd or SonarQube may fit better).Look elsewhere if:
*"This open-source tool automates the detection of duplicated PHP code, saving engineering time on manual reviews and reducing technical debt. By integrating it into our CI pipeline, we can:
*"phpcpd is a lightweight, PHP-specific Copy/Paste Detector that:
*"Need to find those sneaky duplicated functions or classes? phpcpd scans your PHP codebase and highlights exact matches (or near-matches) with line numbers. It’s:
composer.json and start cleaning up in minutes."How can I help you explore Laravel packages today?