Created
October 4, 2012 11:39
-
-
Save dajoho/3833091 to your computer and use it in GitHub Desktop.
Install PHPCS OSX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
Awesome!
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
Worked like a charm in Yosemite