Skip to content

Instantly share code, notes, and snippets.

@neshala
Created August 28, 2014 15:06
Show Gist options
  • Select an option

  • Save neshala/5d6ed3ac01638f299283 to your computer and use it in GitHub Desktop.

Select an option

Save neshala/5d6ed3ac01638f299283 to your computer and use it in GitHub Desktop.
Required for PHPCS
# PHP Code Sniffer
sudo pear install PHP_CodeSniffer
sudo pear upgrade PHP_CodeSniffer
# PHP Mess Detector
sudo pear channel-discover 'pear.phpmd.org'
sudo pear channel-discover 'pear.pdepend.org'
sudo pear install --alldeps phpmd/PHP_PMD
sudo pear upgrade --alldeps phpmd/PHP_PMD
# PHP Code Fixer
sudo curl http://get.sensiolabs.org/php-cs-fixer.phar -o /usr/local/bin/php-cs-fixer
sudo chmod a+x /usr/local/bin/php-cs-fixer
sudo php-cs-fixer self-update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment