Skip to content

Instantly share code, notes, and snippets.

@dajoho
Created October 4, 2012 11:39
Show Gist options
  • Save dajoho/3833091 to your computer and use it in GitHub Desktop.
Save dajoho/3833091 to your computer and use it in GitHub Desktop.
Install PHPCS OSX
sudo cp /private/etc/php.ini.default /private/etc/php.ini;
sudo php /usr/lib/php/install-pear-nozlib.phar;
pear config-set php_ini /private/etc/php.ini;
pecl config-set php_ini /private/etc/php.ini;
sudo pear upgrade-all;
sudo pear install PHP_CodeSniffer;
----
nano /private/etc/php.ini;
include_path Zeile einkommentieren & umändern in:
include_path = ".:/php/includes:/usr/lib/php/pear/"
----
cd ~/Sites/myproject;
phpcs index.php;
@ajmorenodelarosa
Copy link

Awesome!

@venatiodecorus
Copy link

I'm on Sierra and I had to manually symlink phpcs to the phpcs bin in my Homebrew cellar (even though I installed PHP_CodeSniffer via PEAR, my PHP install was through Homebrew)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment