-
Install PEAR in /usr/local
cd /usr/local curl http://pear.php.net/go-pear.phar
-
If you don't already have a php.ini
sudo cp /etc/php.ini.default /etc/php.ini
-
Check your pear directory using
pear config-get php_dir
-
Make sure your pear directory is in your php.ini includes
include_path = "/usr/local/share/pear:.:/php/includes"
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
- Install
wget https://phar.phpunit.de/phpunit.phar
chmod +x phpunit.phar
sudo mv phpunit.phar /usr/local/bin/phpunit
phpunit --version
- Add phpunit to /etc/php.ini
- Use custom autoloader in IntelliJ's PHPUnit Preferences
- Set the path to /usr/local/bin/phpunit
Xdebug
brew tap josegonzalez/homebrew-php
brew install php55-xdebug