14 lines
No EOL
566 B
Bash
14 lines
No EOL
566 B
Bash
export HOMEBREW_NO_INSTALL_CLEANUP=TRUE
|
|
brew tap exolnet/homebrew-deprecated > /dev/null 2>&1;
|
|
brew install php@"$1";
|
|
brew link --force --overwrite php@"$1";
|
|
ini_file=$(php --ini | grep "Loaded Configuration" | sed -e "s|.*:s*||" | sed "s/ //g")
|
|
ext_dir=$(/usr/bin/php -i | grep "extension_dir => /usr" | sed -e "s|.*=> s*||")
|
|
sudo chmod 777 "$ini_file"
|
|
mkdir -p "$(pecl config-get ext_dir)"
|
|
curl -sS https://getcomposer.org/installer | php
|
|
chmod +x composer.phar
|
|
mv composer.phar /usr/local/bin/composer
|
|
composer global require hirak/prestissimo
|
|
php -v
|
|
composer -V |