Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 879 Bytes

installation.md

File metadata and controls

51 lines (34 loc) · 879 Bytes

Installation

## 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

Phar

curl https://github.com/phpmetrics/PhpMetrics/releases/download/v2.8.2/phpmetrics.phar
chmod +x phpmetrics.phar && mv phpmetrics.phar /usr/local/bin/phpmetrics

Apt (Debian, Ubuntu...)

curl https://github.com/phpmetrics/PhpMetrics/releases/download/v2.8.2/phpmetrics.deb
dpkg -i phpmetrics.deb

Brew (OSX)

brew install phpmetrics

PhpArch

yaourt install phpmetrics

Docker

docker run --rm \
    --user $(id -u):$(id -g) \
    --volume /local/path:/project \
    herloct/phpmetrics [<options>]