Setup the PHPStorm local IDE on Mac for Drupal project
- Install PHPCS globally composer global require squizlabs/php_codesniffer
- Execute nano ~/.zshrc then add this line export PATH="$HOME/.composer/vendor/bin:$PATH" At the end of this file and save. And then read it again as a source source ~/.zshrc. (THIS IS APPLICABLE IF YOU ARE USING ZSH)
- Make sure the PHPCS command is installed and working fine now by executing which phpcs