PHP Insights runs code quality, style, and architecture checks on PHP projects from the terminal. It ships presets aimed at Laravel, Symfony, Yii, Magento, and similar frameworks.
Overview
PHP Insights aggregates static analysis and metrics into a terminal report so teams can review quality without wiring multiple separate tools. The quick start installs through Composer and runs against a project directory, with an extra publish step for Laravel configuration files.
Built-in rules target reliability, coupling, simplicity, and cleanliness dimensions alongside coding style. Output includes an architectural overview and complexity indicators intended as a starting point before deeper review.
The tool is maintained as open-source software under the MIT license, with documentation hosted separately from inline project docs.
Key features
- Terminal-based PHP quality analysis
- Architecture and complexity overview
- Framework-oriented default presets
- Style and reliability rule checks
- Laravel configuration publishing
- Composer-installed CLI workflow
Use cases
- Scan legacy PHP codebases for quality gaps
- Gate style consistency in Symfony apps
- Review architecture complexity in Laravel packages
- Introduce standards in new PHP services