Skip to content

Coding Standards Fixer installation

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

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

cd /usr/local/bin

Download the latest version of the php-cs-fixer.phar from the page:

wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.14.0/php-cs-fixer.phar

Rename the file:

mv php-cs-fixer.phar php-cs-fixer

Set the file permissions:

chmod 0755 php-cs-fixer

Check that everything worked out:

cd ~ && php-cs-fixer --version