-
Notifications
You must be signed in to change notification settings - Fork 3
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
Have questions?
Ask your questions in our chat:
Get more features for your application using Awesome PSR-15 Middleware