Audit a PHP project's code quality before a code review or deployment.
Find overly complex or tightly coupled classes and functions in an existing codebase.
Enforce consistent coding style across a Laravel or Symfony team project.
Run a quick health check on an unfamiliar PHP codebase you just inherited.
| nunomaduro/phpinsights | phan/phan | phpseclib/phpseclib | |
|---|---|---|---|
| Stars | 5,599 | 5,615 | 5,568 |
| Language | PHP | PHP | PHP |
| Setup difficulty | easy | moderate | easy |
| Complexity | 2/5 | 3/5 | 2/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Install as a Composer dev dependency with one command, no external services or configuration required.
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.
PHP Insights scans a PHP codebase in seconds and displays scores for code quality, coding style, architecture, and complexity right in your terminal, no account, dashboard, or lengthy configuration required.
Mainly PHP. The stack also includes PHP, Composer.
Use freely for any purpose including commercial projects, as long as you keep the copyright notice.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.