PHPackages                             nunomaduro/phpinsights - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. nunomaduro/phpinsights

ActiveLibrary[CLI &amp; Console](/categories/cli)

nunomaduro/phpinsights
======================

Instant PHP quality checks from your console.

v2.14.0(2mo ago)5.6k10.8M↓10.1%294[68 issues](https://github.com/nunomaduro/phpinsights/issues)[1 PRs](https://github.com/nunomaduro/phpinsights/pulls)20MITPHPPHP ^8.3CI passing

Since May 1Pushed 2mo ago59 watchersCompare

[ Source](https://github.com/nunomaduro/phpinsights)[ Packagist](https://packagist.org/packages/nunomaduro/phpinsights)[ GitHub Sponsors](https://github.com/nunomaduro)[ RSS](/packages/nunomaduro-phpinsights/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (21)Versions (55)Used By (20)

 [![PHP Insights](/art/logo.gif)](/art/logo.gif) [![PHP Insights Preview](/art/preview.png)](/art/preview.png)

 [![Unit Tests](https://github.com/nunomaduro/phpinsights/actions/workflows/test.yaml/badge.svg)](https://github.com/nunomaduro/phpinsights/actions/workflows/test.yaml) [![Total Downloads](https://camo.githubusercontent.com/c4968e24d5ace215fa34a0b29c847482b04c7128b46774fe83437fadb4e14472/68747470733a2f2f706f7365722e707567782e6f72672f6e756e6f6d616475726f2f706870696e7369676874732f642f746f74616c2e737667)](https://packagist.org/packages/nunomaduro/phpinsights) [![Latest Version](https://camo.githubusercontent.com/9e07b6397354ef1c71b2512115405388ba0ef1b7c7f12919ef80f3d66b59ff88/68747470733a2f2f706f7365722e707567782e6f72672f6e756e6f6d616475726f2f706870696e7369676874732f762f737461626c652e737667)](https://packagist.org/packages/nunomaduro/phpinsights) [![License](https://camo.githubusercontent.com/67ee96811b0796ca414106d712388bd2a77ebbe921c36557e98e9e67fdf3e729/68747470733a2f2f706f7365722e707567782e6f72672f6e756e6f6d616475726f2f706870696e7369676874732f6c6963656e73652e737667)](https://packagist.org/packages/nunomaduro/phpinsights)

 **For full documentation, visit [nunomaduro.github.io/phpinsights/](https://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.

- Follow the creator Nuno Maduro:
    - YouTube: **[youtube.com/@nunomaduro](https://youtube.com/@nunomaduro)** — Videos every week
    - Twitch: **[twitch.tv/nunomaduro](https://twitch.tv/nunomaduro)** — Live coding on Mondays, Wednesdays, and Fridays at 9PM UTC
    - Twitter / X: **[x.com/enunomaduro](https://x.com/enunomaduro)**
    - LinkedIn: **[linkedin.com/in/nunomaduro](https://www.linkedin.com/in/nunomaduro)**
    - Instagram: **[instagram.com/enunomaduro](https://www.instagram.com/enunomaduro)**
    - Tiktok: **[tiktok.com/@enunomaduro](https://www.tiktok.com/@enunomaduro)**

🚀 Quick start
-------------

[](#-quick-start)

### First, install:

[](#first-install)

```
composer require nunomaduro/phpinsights --dev

```

### Then, use it:

[](#then-use-it)

```
./vendor/bin/phpinsights

```

### For Laravel:

[](#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
----------

[](#-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
-------------------------

[](#-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](LICENSE.md).

###  Health Score

79

—

ExcellentBetter than 100% of packages

Maintenance83

Actively maintained with recent releases

Popularity76

Solid adoption and visibility

Community57

Growing community involvement

Maturity88

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 59.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~50 days

Recently: every ~82 days

Total

50

Last Release

84d ago

Major Versions

v1.x-dev → v2.0.02021-06-21

PHP version history (6 changes)v1.0.0PHP ^7.2

v2.0.0PHP ^7.4 || ^8.0

v2.8.0PHP ^7.4 || ^8.0 || ^8.1

v2.11.0PHP ^7.4|^8.0

v2.13.0PHP ^8.1

v2.14.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/86cfef5c1f5195df1a9db17a5f8ecb34455e1f0133a725de9acf7f2fb26ac6a1?d=identicon)[nunomaduro](/maintainers/nunomaduro)

---

Top Contributors

[![nunomaduro](https://avatars.githubusercontent.com/u/5457236?v=4)](https://github.com/nunomaduro "nunomaduro (423 commits)")[![Jibbarth](https://avatars.githubusercontent.com/u/3168281?v=4)](https://github.com/Jibbarth "Jibbarth (114 commits)")[![olivernybroe](https://avatars.githubusercontent.com/u/5870441?v=4)](https://github.com/olivernybroe "olivernybroe (40 commits)")[![cmgmyr](https://avatars.githubusercontent.com/u/4693481?v=4)](https://github.com/cmgmyr "cmgmyr (22 commits)")[![50bhan](https://avatars.githubusercontent.com/u/36772278?v=4)](https://github.com/50bhan "50bhan (19 commits)")[![Gummibeer](https://avatars.githubusercontent.com/u/6187884?v=4)](https://github.com/Gummibeer "Gummibeer (13 commits)")[![oliverquynh](https://avatars.githubusercontent.com/u/16967350?v=4)](https://github.com/oliverquynh "oliverquynh (10 commits)")[![tvbeek](https://avatars.githubusercontent.com/u/2026498?v=4)](https://github.com/tvbeek "tvbeek (6 commits)")[![smokills](https://avatars.githubusercontent.com/u/7535708?v=4)](https://github.com/smokills "smokills (5 commits)")[![lancepioch](https://avatars.githubusercontent.com/u/1296882?v=4)](https://github.com/lancepioch "lancepioch (5 commits)")[![killua99](https://avatars.githubusercontent.com/u/457822?v=4)](https://github.com/killua99 "killua99 (4 commits)")[![bastien-phi](https://avatars.githubusercontent.com/u/10199039?v=4)](https://github.com/bastien-phi "bastien-phi (4 commits)")[![krisnaw](https://avatars.githubusercontent.com/u/1654121?v=4)](https://github.com/krisnaw "krisnaw (4 commits)")[![tarlepp](https://avatars.githubusercontent.com/u/595561?v=4)](https://github.com/tarlepp "tarlepp (4 commits)")[![JustSteveKing](https://avatars.githubusercontent.com/u/6368379?v=4)](https://github.com/JustSteveKing "JustSteveKing (4 commits)")[![szepeviktor](https://avatars.githubusercontent.com/u/952007?v=4)](https://github.com/szepeviktor "szepeviktor (4 commits)")[![mikeerickson](https://avatars.githubusercontent.com/u/183153?v=4)](https://github.com/mikeerickson "mikeerickson (3 commits)")[![Pluiesurlavitre](https://avatars.githubusercontent.com/u/11065186?v=4)](https://github.com/Pluiesurlavitre "Pluiesurlavitre (3 commits)")[![hdcore](https://avatars.githubusercontent.com/u/15183537?v=4)](https://github.com/hdcore "hdcore (2 commits)")[![jochensengier](https://avatars.githubusercontent.com/u/10118729?v=4)](https://github.com/jochensengier "jochensengier (2 commits)")

---

Tags

analyticsarchitectureclicodecomplexityconsolecshacktoberfestphpqualitystaticstyletoolphpconsolecodequalityInsightssource

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/nunomaduro-phpinsights/health.svg)

```
[![Health](https://phpackages.com/badges/nunomaduro-phpinsights/health.svg)](https://phpackages.com/packages/nunomaduro-phpinsights)
```

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[humbug/box

Fast, zero config application bundler with PHARs.

1.3k801.5k69](/packages/humbug-box)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
