setup-php/src/scripts/darwin.sh

12 lines
506 B
Bash
Raw Normal View History

export HOMEBREW_NO_INSTALL_CLEANUP=TRUE
2019-09-28 03:06:41 +05:30
brew tap exolnet/homebrew-deprecated >/dev/null 2>&1
brew install php@"$1" composer >/dev/null 2>&1
brew link --force --overwrite php@"$1" >/dev/null 2>&1
ini_file=$(php --ini | grep "Loaded Configuration" | sed -e "s|.*:s*||" | sed "s/ //g")
2019-09-20 08:11:20 +05:30
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)"
2019-09-28 03:06:41 +05:30
composer global require hirak/prestissimo >/dev/null 2>&1
2019-09-06 05:17:43 +05:30
php -v
composer -V