## Composer
composer global require 'phpmetrics/phpmetrics'
Please note that the ~/.composer/vendor/bin
directory must be in your $PATH
. For example in your ~/.bash_profile
(or ~/.bashrc
), add :
export PATH=~/.composer/vendor/bin:$PATH
curl https://github.com/phpmetrics/PhpMetrics/releases/download/v2.8.2/phpmetrics.phar
chmod +x phpmetrics.phar && mv phpmetrics.phar /usr/local/bin/phpmetrics
curl https://github.com/phpmetrics/PhpMetrics/releases/download/v2.8.2/phpmetrics.deb
dpkg -i phpmetrics.deb
brew install phpmetrics
yaourt install phpmetrics
docker run --rm \
--user $(id -u):$(id -g) \
--volume /local/path:/project \
herloct/phpmetrics [<options>]