PHP Insights is a simple command line to analyze the code quality of your PHP projects. Written and maintained by Nuno Maduro, author of Laravel Zero the framework for console artisans. It’s a static analysis tool providing analysis of code quality and coding style with a beautiful overview of code architecture and it’s complexity.

PHP Insights is designed to work out-of-the-box with Laravel, Symfony, Yii, WordPress, Magento2, and more. To add to your project simply run :

# First, install:
composer require nunomaduro/phpinsights --dev

# Then, use it:

PHP Insights contains built-in checks for making code reliable, loosely coupled, simple, and clean. The tool requires PHP 7.2+, and documentation is available here, released under an MIT license.

More information at