- Homebrew is installed
brew tap homebrew/dupesbrew tap josegonzalez/homebrew-phpbrew install PHP53(or other version of your choice)
brew install php-code-snifferbrew install phpcs
- Navigate to Preferences > PHP > Code Sniffer
- Set path to output of
which phpcsand hit 'validate' - Navigate to Preferences > Inspections > PHP > PHP Code Sniffer validation and tick to enable
- Refresh 'Coding Standards' dropdown and select your preferred options
brew install phpmd
- Navigate to Preferences > PHP > Mess Detector
- Set path to output of
which phpmdand hit 'validate' - Navigate to Preferences > Inspections > PHP and tick to enable