Tos Web Developer provides insights, tutorials, and advice around topics including content strategy, design, Drupal Development, Drupal Custom Module Development, Drupal 8 Custom themes, PHP, Server, Twig, and more

System-wide Installation

The phpcs linter can be installed globally using the Composer Dependency Manager for PHP.
  1. Install composer.

  2. Require phpcs package by typing the following in a terminal:

     composer global require squizlabs/php_codesniffer  
    

  3. Press Command + , (Click Code -> Preferences -> Settings)



  4. Select User Settings and locate 'PHP CodeSniffer'


  5. Scroll to 'Executable Path' and put

     /Users/your-username/.composer/vendor/bin/phpcs


No comments:

Post a Comment

| Designed And Blog Post by www.toswebdeveloper.com