GitPedia

Phpinsights

๐Ÿ”ฐ Instant PHP quality checks from your console

From nunomaduroยทUpdated June 18, 2026ยทView on GitHubยท

For full documentation, visit nunomaduro.github.io/phpinsights/. The project is written primarily in PHP, distributed under the MIT License license, first published in 2019. It has gained significant community traction with 5,606 stars and 297 forks on GitHub. Key topics include: analytics, architecture, cli, code, complexity.

Latest release: v2.14.2
<p align="center"> <img src="/art/logo.gif" width="350" alt="PHP Insights"> <img src="/art/preview.png" width="882" alt="PHP Insights Preview"> <p align="center"> <a href="https://github.com/nunomaduro/phpinsights/actions/workflows/test.yaml"><img src="https://github.com/nunomaduro/phpinsights/actions/workflows/test.yaml/badge.svg" alt="Unit Tests"></a> <a href="https://packagist.org/packages/nunomaduro/phpinsights"><img src="https://poser.pugx.org/nunomaduro/phpinsights/d/total.svg" alt="Total Downloads"></a> <a href="https://packagist.org/packages/nunomaduro/phpinsights"><img src="https://poser.pugx.org/nunomaduro/phpinsights/v/stable.svg" alt="Latest Version"></a> <a href="https://packagist.org/packages/nunomaduro/phpinsights"><img src="https://poser.pugx.org/nunomaduro/phpinsights/license.svg" alt="License"></a> </p> <p align="center"> <strong>For full documentation, visit <a href="https://nunomaduro.github.io/phpinsights/">nunomaduro.github.io/phpinsights/</a></strong>. </p> </p>

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.

Contributors

Showing top 12 contributors by commit count.

View all contributors on GitHub โ†’

This article is auto-generated from nunomaduro/phpinsights via the GitHub API.Last fetched: 6/19/2026