Skip to content

Code Sniffer Installation

Anatoly Nekhay edited this page Jan 13, 2019 · 1 revision

Go to the directory /usr/local/bin to install the sniffer globally:

cd /usr/local/bin

Download the latest version of the phpcs.phar from the page:

wget https://github.com/squizlabs/PHP_CodeSniffer/releases/download/3.4.0/phpcs.phar

Rename the file:

mv phpcs.phar phpcs

Set the file permissions:

chmod 0755 phpcs

Check that everything worked out:

cd ~ && phpcs --version