PHP MIT

PhpMetrics

Beautiful and understandable static analysis tool for PHP

P

phpmetrics

Dernière activité 21 août 2026
phpmetrics/PhpMetrics

2,6 k

étoiles

261

forks

4

issues ouvertes

cimetricsphpqualitystatic-analyzer

Ce README est souvent en anglais.

PhpMetrics

Packagist Downloads License Latest Stable Version

Standard report

PhpMetrics

PhpMetrics provides metrics about PHP project and classes, with beautiful and readable HTML report.

Documentation | Twitter | Contributing



Quick start

Follow the quick start guide to get started.

# install the package as a dev dependency
composer require phpmetrics/phpmetrics --dev

# run PHPMetrics to analyze a folder and generate a report
php ./vendor/bin/phpmetrics --report-html=myreport <folder-to-analyze>

Then open the generated ./myreport/index.html file in your browser.

You can use a configuration file to customize the report, add options, configure rules for Continuous Integration, etc.

Metrics

You'll find detailed list of metrics in documentation, or running php ./vendor/bin/phpmetrics --metrics

Author

License

See the LICENSE file.

Contributing

See the CONTRIBUTING file.

Support the project

PHPMetrics is built and maintained on free time. If it saved you some of yours:

  • ⭐ Star the repository. It costs nothing and it is how most developers discover the tool.
  • ❤️ Become a sponsor. Sponsorship directly funds maintenance time and the addition of new features and metrics.

Projets similaires

🔰 Instant PHP quality checks from your console

PHPanalyticsarchitecturecli
Nnunomaduro
5,6 k étoiles301

A reviewed list of useful PHP static analysis tools

phpphp-analysisphp-applications
Eexakat
2,9 k étoiles245

A tool to automatically fix PHP Coding Standards issues

PHPcode-standardscode-stylephp
PPHP-CS-Fixer
13,6 k étoiles1,6 k