PHP Metrics alternatives and similar libraries
Based on the "Code Analysis" category.
Alternatively, view PHP Metrics alternatives based on common mentions on social networks and blogs.
-
PHP Code Sniffer
PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards. -
phan
Phan is a static analyzer for PHP. Phan prefers to avoid false-positives and attempts to prove incorrectness rather than correctness. -
PHP Mess Detector
PHPMD is a spin-off project of PHP Depend and aims to be a PHP equivalent of the well known Java tool PMD. PHPMD can be seen as an user friendly frontend application for the raw metrics stream measured by PHP Depend. -
Better Reflection
:crystal_ball: Better Reflection is a reflection API that aims to improve and provide more features than PHP's built-in reflection API. -
PHP Semantic Versioning Checker
Compares two source sets and determines the appropriate semantic versioning to apply. -
PHPCheckstyle
PHPCheckstyle is an open-source tool that helps PHP programmers adhere to certain coding conventions.
InfluxDB - Power Real-Time Data Analytics at Scale
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of PHP Metrics or a related project?
README
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
- Jean-François Lépine <@Halleck45>
License
See the [LICENSE](LICENSE) file.
Contributing
See the [CONTRIBUTING](doc/contributing.md) file.
*Note that all licence references and agreements mentioned in the PHP Metrics README section above
are relevant to that project's source code only.