mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 20:01:06 +07:00
12 lines
370 B
Bash
12 lines
370 B
Bash
echo $1
|
|
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
|
brew unlink php
|
|
brew tap exolnet/homebrew-deprecated
|
|
brew tap homebrew/homebrew-php
|
|
brew install php@$1
|
|
brew link --force --overwrite php@$1
|
|
curl -sS https://getcomposer.org/installer | php
|
|
chmod +x composer.phar
|
|
mv composer.phar /usr/local/bin/composer
|
|
php -v
|
|
composer -V |