nunomaduro/phpinsights

Instant PHP quality checks from your console.

Fund package maintenance!
nunomaduro
cmgmyr
JustSteveKing

Installs: 7 936 224

Dependents: 409

Suggesters: 3

Security: 0

Stars: 5 362

Watchers: 62

Forks: 283

Open Issues: 73

v2.12.0 2024-11-11 14:42 UTC

README

Caution

This package is no longer actively maintained. Please use at your own risk, or fork the package. Docs are available within the docs/ directory.

If you are willing to be a maintainer of this package, please reach out to Nuno Maduro, or create a new issue stating your interest.

PHP Insights PHP Insights Preview

Unit Tests Total Downloads Latest Version License

For full documentation, visit phpinsights.com.

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. It was created by Nuno Maduro with logo design Caneco.

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