Skip to content

phpmetrics/PhpMetrics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c43217c · Jan 6, 2025
Dec 27, 2019
Mar 8, 2023
Mar 30, 2020
Sep 14, 2017
Mar 8, 2023
Mar 8, 2023
Mar 8, 2023
Jan 5, 2025
Feb 3, 2023
Sep 13, 2023
Sep 18, 2017
Dec 13, 2019
Dec 13, 2019
Sep 21, 2017
Mar 8, 2023
Nov 26, 2020
Feb 10, 2023
Sep 18, 2017
Dec 13, 2013
Mar 8, 2023
Nov 5, 2022
Jun 27, 2020
Sep 19, 2021
Mar 23, 2022
Mar 23, 2022
Dec 27, 2019
Mar 23, 2022

Repository files navigation

PhpMetrics

License Latest Stable Version Slack

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.