Created
December 27, 2020 15:20
-
-
Save OskarStark/73148cc0b6a13ccdc1e1ee345cf92786 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PHP_VERSIONS="5.6 7.0 7.1 7.2 7.3 7.4" | |
EXTENSIONS="amqp imagick imap" | |
echo "Add taps" | |
brew tap shivammathur/php | |
brew tap shivammathur/extensions | |
echo "Remove all available PHP configs" | |
rm -rf /usr/local/etc/php/* | |
for version in $PHP_VERSIONS | |
do | |
echo "Install PHP $version with: $EXTENSIONS" | |
brew reinstall shivammathur/php/php@$version | |
brew link --overwrite --force php@$version | |
for extension in $EXTENSIONS | |
do | |
echo "Extension: $extension" | |
brew reinstall shivammathur/extensions/$extension@$version | |
done | |
php -v | |
for extension in $EXTENSIONS | |
do | |
php -m | grep $extension | |
done | |
done | |
symfony local:php:refresh | |
symfony local:php:list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment