setup-php/src/darwin.sh

12 lines
370 B
Bash
Raw Normal View History

2019-09-06 06:47:43 +07:00
echo $1
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew unlink php
brew tap exolnet/homebrew-deprecated
2019-09-06 21:55:07 +07:00
brew tap homebrew/homebrew-php
2019-09-06 06:47:43 +07:00
brew install php@$1
brew link --force --overwrite php@$1
2019-09-06 21:55:07 +07:00
curl -sS https://getcomposer.org/installer | php
chmod +x composer.phar
mv composer.phar /usr/local/bin/composer
2019-09-06 06:47:43 +07:00
php -v
composer -V