Skip to content

Instantly share code, notes, and snippets.

@ynaoto
Created July 23, 2013 12:27
Show Gist options
  • Select an option

  • Save ynaoto/6061998 to your computer and use it in GitHub Desktop.

Select an option

Save ynaoto/6061998 to your computer and use it in GitHub Desktop.
Install PEAR, PHP_CodeSniffer and PHPCompatibility on Max OS
sudo php /usr/lib/php/install-pear-nozlib.phar
sudo pear install PHP_CodeSniffer
cd /usr/lib/php/pear/PHP/CodeSniffer/Standards
sudo mv ~/git/PHPCompatibility .
sudo cp php.ini.default php.ini
sudo vi php.ini # add /usr/lib/php/pear to include_path
phpcs --standard=PHPCompatibility a.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment