Gives metrics about PHP project and classes.
You can install the .phar package by command line running the following commands:
wget https://github.com/phpmetrics/PhpMetrics/raw/master/build/phpmetrics.phar
chmod +x phpmetrics.phar
mv phpmetrics.phar /usr/local/bin/phpmetrics
composer global require 'phpmetrics/phpmetrics'
Do not hesitate to visit the official documentation.
The command command phpmetrics --report-html=./log <folder or filename>
will generate HTML report in the ./log
directory.
## Compatibility
PhpMetrics can parse PHP code from PHP 5.3 to PHP 7.x.
## IDE integration
In order to run unit tests, please install the dev dependencies:
curl -sS https://getcomposer.org/installer | php
php composer.phar install
Then, in order to run the test suite:
./vendor/bin/phpunit
Finally, build the phar:
make build
# Author
- Jean-François Lépine <www.lepine.pro>
# License
See the LICENSE file.