bmitch/churn-php
churn-php helps you spot PHP files that are likely refactoring candidates by analyzing Git commit churn and cyclomatic complexity, then ranking files with a combined score and presenting the results in an easy-to-read table.
maxScoreThreshold).churn-php to quantify and justify refactoring initiatives.Adopt if:
Look elsewhere if:
php-security-advisory or sensio-labs/security-checker).For Executives: *"churn-php is a low-cost, high-impact tool to identify the most risky parts of our Laravel codebase—files that change often and are complex. By integrating this into our CI pipeline, we can:
For Engineering Teams: *"This tool gives us data-driven refactoring priorities by scoring files based on:
maxScoreThreshold: 0.9).For Developers: *"Think of this as a ‘code health report’ for your PHP files. Run it locally or in CI with:
composer require bmitch/churn-php --dev
./vendor/bin/churn run src
It’ll show you a ranked list of files to refactor, sorted by risk. You can even customize the output (Markdown for PRs, JSON for APIs) or extend it with hooks. No more guessing—just actionable insights."*
How can I help you explore Laravel packages today?