Forked from nunomorgadinho/gist:b2d8e5b8f5fec5b0ed946b24fa288a91
          
        
    
          Created
          March 23, 2017 19:58 
        
      - 
      
 - 
        
Save esthervillars/f6dce79ebc80652ca3cc37e37e130b41 to your computer and use it in GitHub Desktop.  
    PHPCS + WordPress Coding Standards
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # Install brew | |
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| # Install composer | |
| brew install homebrew/php/composer | |
| ### PHPCS | |
| composer global require "squizlabs/php_codesniffer=*" | |
| # Add to your .bash_profile | |
| export PATH=$PATH:~/.composer/vendor/bin | |
| #### WordPress Coding Standards | |
| composer global require "wp-coding-standards/wpcs" | |
| phpcs --config-set installed_paths $HOME/.composer/vendor/wp-coding-standards/wpcs | |
| phpcs --config-set default_standard WordPress-Extra | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment