nunomaduro/phpinsights

🔰 Instant PHP quality checks from your console

PHP

5,640

800 commits

updated Sep 15, 2026

See the code

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.

analytics
architecture
cli
code
complexity
console
cs
hacktoberfest
php
quality
static
style
tool

nunomaduro/phpinsights

🔰 Instant PHP quality checks from your console

PHP

5,640

800 commits

updated Sep 15, 2026

See the code

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.

analytics
architecture
cli
code
complexity
console
cs
hacktoberfest
php
quality
static
style
tool

Project health

Overall

5.4/10

Maintained

9/10

Code review

1/10
OpenSSF Scorecard

Significant stargazers

Pascal Birchler

650 followers · starred May 2019

Richard van Velzen

48 followers · starred Dec 2025

Ruben Ruiz de Gauna

9 followers · starred May 2019

pratik kuikel

22 followers · starred Jul 2026