PHP 8.3+
A long-lived project that still receives updates
Instant PHP quality checks from your console.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

^11.44.2|^12.52|^13.4
^11.44.2|^12.52|^13.4
mockery/mockery
^1.6.12
phpstan/phpstan
^2.1.46
phpunit/phpunit
^11.5.55|^12.5.17
symfony/var-dumper
^7.4.4|^8.0.8

Runtime

cmgmyr/phploc
^8.0.6
composer/semver
^3.4.4
league/container
^5.2.0
php-parallel-lint/php-parallel-lint
^1.4.0
psr/container
^2.0.2
psr/simple-cache
^2.0|^3.0
sebastian/diff
^6.0.2|^7.0.0
slevomat/coding-standard
^8.22.1
squizlabs/php_codesniffer
^3.13.5
symfony/cache
^7.4.5|^8.0.8
symfony/console
^7.4.4|^8.0.8
symfony/finder
^7.4.5|^8.0.8
symfony/http-client
^7.4.5|^8.0.8
symfony/process
^7.4.5|^8.0.8
 Project Readme

PHP Insights PHP Insights Preview

Unit Tests Total Downloads Latest Version License

For full documentation, visit nunomaduro.github.io/phpinsights/.

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.

🚀 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.