What is PHPMetrics and how can I use it?
As said by PHPMEtrics.org, its a static analysis tool for PHP
So its is pretty much defined there, few things I want to highlight.
Install as a dev-dependency, your production server should not be loaded with it. So the composer.json entry should be:
"require-dev": {
"phpmetrics/phpmetrics": "2.3.2",
...
}
Or, you can download the phar from github, and run as:
php /c/bin/phpmetrics.phar --report-html=metrics-report .
Now you have to link /metric-report/index.html so that it can be published to reviewers.
Pretty cool right!! You want a Drupal 8 module...if so check my phpmetricsintegration module, usuage are in project page (Y)