gustavobava / nunomaduro-phpinsights
Instant PHP quality checks from your console.
                                    Fund package maintenance!
                                                                            
                                                                                                                                        nunomaduro
                                                                                    
                                                                            
                                                                                                                                        olivernybroe
                                                                                    
                                                                            
                                                                                                                                        Patreon
                                                                                    
                                                                            
                                                                                                                                        www.paypal.com/paypalme/enunomaduro
                                                                                    
                                                                
Installs: 16 214
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 290
pkg:composer/gustavobava/nunomaduro-phpinsights
Requires
- php: ^7.2
 - ext-iconv: *
 - ext-json: *
 - ext-mbstring: *
 - ext-tokenizer: *
 - composer/composer: ^1.7
 - friendsofphp/php-cs-fixer: ^2.15
 - justinrainbow/json-schema: ^5.1
 - league/container: ^3.2
 - object-calisthenics/phpcs-calisthenics-rules: ^3.7
 - phploc/phploc: ^5.0|^6.0
 - psr/container: ^1.0
 - slevomat/coding-standard: ^6.0
 - squizlabs/php_codesniffer: ^3.4
 - symfony/console: ^4.2|^5.0
 - symfony/finder: ^4.2|^5.0
 - symfony/http-client: ^4.3|^5.0
 
Requires (Dev)
- ergebnis/phpstan-rules: ^0.14.0
 - illuminate/console: ^5.8|^6.0|^7.0
 - illuminate/support: ^5.8|^6.0|^7.0
 - mockery/mockery: ^1.0
 - phpstan/phpstan-strict-rules: ^0.12
 - phpunit/phpunit: ^8.0|^9.0
 - symfony/var-dumper: ^4.2|^5.0
 - symplify/easy-coding-standard: ^7.1
 - thecodingmachine/phpstan-strict-rules: ^0.12.0
 
Suggests
- ext-simplexml: It is needed for the checkstyle formatter
 
This package is auto-updated.
Last update: 2025-10-24 19:39:40 UTC
README
For full documentation, visit phpinsights.com.
PHP Insights was carefully crafted to simplify the analysis of your code directly from your terminal, and is the perfect starting point to analyze the code quality of your PHP projects. It was created by Nuno Maduro, and currently maintained by Jibé Barth, Nuno Maduro, Oliver Nybroe, and Caneco.
🚀 Quick start
# First, install:
composer require nunomaduro/phpinsights --dev
# Then, use it:
./vendor/bin/phpinsights
# For Laravel:
First, publish the configuration file:
php artisan vendor:publish --provider="NunoMaduro\PhpInsights\Application\Adapters\Laravel\InsightsServiceProvider"
Then, use it:
php artisan insights
✨ Features
- Analysis of code quality and coding style
 - Beautiful overview of code architecture and its complexity
 - Designed to work out-of-the-box with Laravel, Symfony, Yii, Magento, and more
 - Contains built-in checks for making code reliable, loosely coupled, simple, and clean
 
💖 Support the development
Do you like this project? Support it by donating
PHP Insights is open-sourced software licensed under the MIT license.

