System-wide Installation
Thephpcs
linter can be installed globally using the Composer
Dependency Manager for PHP.
-
Install
composer.
-
Require
phpcs
package by typing the following in a terminal:
composer global require squizlabs/php_codesniffer
- Press Command + , (Click Code -> Preferences -> Settings)
- Select User Settings and locate 'PHP CodeSniffer'
-
Scroll to 'Executable Path' and put
/Users/your-username/.composer/vendor/bin/phpcs
No comments:
Post a Comment