phpinsights is a free, open source marketing & customer engagement project written in PHP and released under MIT. It has 5,635 GitHub stars, 301 forks and 71 open issues, and was last pushed 2 days ago. On this registry it ranks #21 of 70 tracked projects in Marketing & Customer Engagement, with 5 head-to-head comparisons available.

What is phpinsights?

PHP Insights is an MIT-licensed command-line tool that runs instant code quality, coding style, architecture, and complexity checks on PHP projects from the terminal, built for PHP developers and teams who want a fast quality read without leaving the console.

What it is

PHP Insights is a PHP package, installed through Composer as nunomaduro/phpinsights and invoked through the binary ./vendor/bin/phpinsights. The README describes it as carefully crafted to simplify the analysis of code directly from the terminal, and as a starting point for analyzing the code quality of PHP projects. It ships with adapters so it works out of the box with Laravel, Symfony, Yii, Magento, and more. Full documentation lives outside the repository at nunomaduro.github.io/phpinsights/. The registry files it under Business Software / Marketing & Customer Engagement, although the tool itself is developer tooling for PHP codebases.

The concrete problem it solves is fragmentation of quality review. Rather than assembling separate style, complexity, and architecture checks per framework, PHP Insights bundles built-in checks that aim at reliable, loosely coupled, simple, and clean code, and presents the result as one console overview. It replaces the ad-hoc practice of stitching together per-framework inspection setups in a PHP project. The PHP and Composer ecosystem, and the command line, are where it lives.

Key capabilities

  • Runs ./vendor/bin/phpinsights from the terminal for an immediate quality report on a PHP project.
  • Analyzes code quality and coding style as distinct concerns.
  • Produces a console overview of code architecture and its complexity.
  • Contains built-in checks oriented toward reliable, loosely coupled, simple, and clean code.
  • Works out of the box with Laravel, Symfony, Yii, Magento, and more.
  • Laravel integration publishes configuration through php artisan vendor:publish --provider="NunoMaduro\PhpInsights\Application\Adapters\Laravel\InsightsServiceProvider" and then runs php artisan insights.
  • Installs through Composer with the --dev flag, keeping the tool out of the production runtime.

Who uses it and how

  • Laravel teams publish the service provider configuration once, then run php artisan insights as part of routine development.
  • Teams on Symfony, Yii, or Magento run the vendor binary without framework-specific setup because the tool is designed to work out of the box.
  • Individual developers and small teams install it as a Composer dev dependency, so the tool never ships with production code.
  • Projects that prefer a terminal-first workflow use it as the starting point for assessing code quality before deeper review.
  • Adoption is visible in the repository metrics: 5,635 stars, 301 forks, and 71 open issues at the time of writing.

Getting started

Install with composer require nunomaduro/phpinsights --dev, then run ./vendor/bin/phpinsights. For Laravel, publish the configuration file first, then use php artisan insights.

How it compares

No paid products and no comparable quality-check tools are named in the facts provided, so PHP Insights stands alone in this registry. It carries the MIT license, which places it alongside other permissively licensed developer tooling rather than any commercial alternative.

When to use it β€” and when not to

A self-hoster needs PHP and Composer, and nothing else is mentioned; no database, object storage, or SMTP dependency appears in the facts. Do not pick it for non-PHP projects, for teams wanting a hosted dashboard or managed service, or for anyone who needs documentation contained inside the repository, since the README excerpt is short and points to an external site while the registry homepage field points to the creator's YouTube channel. The 71 open issues are worth reviewing before adoption, and the configuration surface beyond publishing the Laravel provider file is not described in the facts provided.

project readme (upstream, from github) β€” read inline

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.

Frequently asked questions

Is phpinsights free to use?

phpinsights is open source under the MIT licence. There is no licence fee and no seat count β€” you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does phpinsights do?

πŸ”° Instant PHP quality checks from your console

What is phpinsights written in?

phpinsights is primarily written in PHP. Its source is publicly available at https://github.com/nunomaduro/phpinsights, and it has 5,635 GitHub stars.