nunomaduro / phpinsights
Instant PHP quality checks from your console.
Fund package maintenance!
nunomaduro
Installs: 8 184 423
Dependents: 419
Suggesters: 3
Security: 0
Stars: 5 395
Watchers: 62
Forks: 287
Open Issues: 66
Requires
- php: ^8.1
- ext-iconv: *
- ext-json: *
- ext-mbstring: *
- ext-tokenizer: *
- cmgmyr/phploc: ^8.0.6
- composer/semver: ^3.4.3
- friendsofphp/php-cs-fixer: ^3.74.0
- justinrainbow/json-schema: ^6.3.1
- league/container: ^5.0.1
- php-parallel-lint/php-parallel-lint: ^1.4.0
- psr/container: ^2.0.2
- psr/simple-cache: ^2.0|^3.0
- sebastian/diff: ^5.1.1|^6.0.2|^7.0.0
- slevomat/coding-standard: ^8.16.2
- squizlabs/php_codesniffer: ^3.12.0
- symfony/cache: ^6.4.20|^7.2.5
- symfony/console: ^6.4.20|^7.2.5
- symfony/finder: ^6.4.17|^7.2.2
- symfony/http-client: ^6.4.19|^7.2.4
- symfony/process: ^6.4.20|^7.2.5
Requires (Dev)
- illuminate/console: ^10.48.28|^11.44.2|^12.4
- illuminate/support: ^10.48.28|^11.44.2|^12.4
- mockery/mockery: ^1.6.12
- phpstan/phpstan: ^2.1.11
- phpunit/phpunit: ^10.5.45|^11.5.15
- symfony/var-dumper: ^6.4.18|^7.2.3
Suggests
- ext-simplexml: It is needed for the checkstyle formatter
- dev-master
- v2.13.1
- v2.13.0
- v2.12.0
- v2.11.0
- v2.10.0
- v2.9.0
- v2.8.0
- v2.7.0
- v2.6.1
- v2.6.0
- v2.5.0
- v2.4.0
- v2.3.0
- v2.2.0
- v2.1.0
- v2.0.1
- v2.0.0
- v1.x-dev
- v1.14.1
- v1.14.0
- v1.13.0
- v1.12.0
- v1.11.1
- v1.11.0
- v1.10.3
- v1.10.2
- v1.10.1
- v1.10.0
- v1.9.0
- v1.8.1
- v1.8.0
- v1.7.0
- v1.6.0
- v1.5.0
- v1.4.0
- v1.3.1
- v1.3.0
- v1.2.1
- v1.2.0
- v1.1.1
- v1.1.0
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- dev-dependabot/composer/tests/Fixtures/Domain/Results/SecurityIssueComposer/symfony/http-foundation-5.4.46
- dev-feat/adds-support-laravel-7
- dev-fix/non-defined-key-on-config-resolver
- dev-feat/first
This package is auto-updated.
Last update: 2025-03-30 15:28:57 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.
- Follow the creator Nuno Maduro:
- YouTube: youtube.com/@nunomaduro — Videos every weekday
- Twitch: twitch.tv/enunomaduro — Streams (almost) every weekday
- Twitter / X: x.com/enunomaduro
- LinkedIn: linkedin.com/in/nunomaduro
- Instagram: instagram.com/enunomaduro
- Tiktok: tiktok.com/@enunomaduro
🚀 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
Click the "💖 Sponsor" at the top of this repo.
PHP Insights is open-sourced software licensed under the MIT license.