SkillAgentSearch skills...

PhpMetrics

Beautiful and understandable static analysis tool for PHP

Install / Use

/learn @phpmetrics/PhpMetrics
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

PhpMetrics

Packagist Downloads License Latest Stable Version <a href="https://github.com/sponsors/Halleck45"><img src="https://img.shields.io/static/v1?label=Sponsor&amp;message=%E2%9D%A4&amp;logo=GitHub&amp;color=%23fe8e86" alt=""></a>

Standard report

<img src="https://raw.githubusercontent.com/phpmetrics/PhpMetrics/master/doc/phpmetrics-logo.png" height="80px" alt="PhpMetrics" align="left" style="margin-right:20px"/>

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

Documentation | Twitter | Contributing

<br/><br/>

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.

View on GitHub
GitHub Stars2.6k
CategoryDevelopment
Updated17h ago
Forks264

Languages

PHP

Security Score

100/100

Audited on Apr 5, 2026

No findings