// the find
nunomaduro/phpinsights
🔰 Instant PHP quality checks from your console
PHP Insights is a static analysis CLI that gives you a scored overview of your codebase across four categories: code quality, style, architecture, and complexity. It wraps PHP-CS-Fixer and PHP_CodeSniffer under a prettier interface and adds its own architectural checks on top. It's aimed at PHP developers who want a quick health dashboard rather than a raw linter dump.
Framework presets (Laravel, Symfony, Yii, Magento, WordPress, Drupal) mean it works sensibly out of the box without writing a config from scratch. The four-quadrant scoring — quality, complexity, architecture, style as separate percentages — gives you a more actionable breakdown than a single pass/fail. Output formatters include Checkstyle, CodeClimate, GitHub Actions annotations, and JSON, so it plugs into any CI pipeline without friction. The --fix flag actually applies PHP-CS-Fixer fixes, not just reports them, which is rarer than you'd think in this space.
The project is largely a UI layer over PHP-CS-Fixer and PHP_CodeSniffer — if you're already running those tools directly you're getting duplicated feedback with a prettier coat of paint, not genuinely new analysis. 5,600 stars and only 297 forks suggests wide usage but shallow contribution, and the CHANGELOG shows bursts of activity followed by long silences. The architecture checks (ForbiddenTraits, ForbiddenNormalClasses, ForbiddenSetterSniff) are opinionated in a particular OOP-purity direction that won't match many teams' actual standards and can't be swapped out easily. There's no incremental analysis — it scans your entire codebase every run, which gets painful in larger monorepos.