phpinsights
π° Instant PHP quality checks from your console
PHP Insights is a command-line tool that analyzes the quality of a PHP codebase and reports the results directly in the terminal. You run a single command pointing at your project, and within seconds you get a summary of how the code scores across several areas: code quality, coding style consistency, architectural structure, and complexity.
The idea is to give developers an immediate, honest reading of their project without requiring an account, a dashboard, or a lengthy configuration process. The tool works out of the box with popular PHP frameworks including Laravel, Symfony, Yii, and Magento. For Laravel users, there is a dedicated Artisan command so the tool fits naturally into the existing workflow.
The checks cover things like whether code is unnecessarily tangled or tightly coupled, whether it follows recognized coding conventions, and whether individual functions or classes have grown too complex to maintain. Results are displayed as a color-coded summary with scores and specific issues flagged for review.
Installation is handled through Composer, the standard PHP package manager. Adding the package to a project takes one command, and it is meant to be installed as a development dependency so it does not affect the production application. The tool is open-source, released under the MIT license, and the author accepts sponsorship through GitHub.