Php Coding Standard Installation

Precondition : ubuntu user, IDE : PhpStorm.

Install with curl : $ curl -o php-cs-fixer

Then move it to your bin :

$ sudo chmod a+x php-cs-fixer
$ sudo mv php-cs-fixer /usr/local/bin/php-cs-fixer

Then you can run php-cs-fixer to see the list of global commands existed.

Second part is to add php-css-fixer as an external PhpStorm tool by locating File / Setting / Tools / External Tools and click the add + button.

And now in PhpStorm you can use php-cs-fixer by accessing to Tools/External Tools/php-cs-fixer and then choose the path to your file.
If you liked this article

Let's subscribe the updates of Scuti!
Share on Google Plus

About Anonymous

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment


Post a Comment