Last active
July 9, 2018 01:35
-
-
Save theodson/3e5a792ed06b70a1a0799603bfa79dca 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
# try to figure out simple multi php install | |
# https://www.npmjs.com/package/switch-php (yarn or npm - your choice) | |
yarn global add switch-php | |
# npm install --global switch-php | |
for version in 7.0 7.1 7.2 | |
do | |
brew reinstall php@$version | |
switch-php -v $version | |
pecl install redis imagick apcu xdebug memcached | |
# check versions | |
php -v; | |
fpm-php -v | |
# check ext | |
php -m | egrep 'redis|imagick|apcu|xdebug|memcached' | |
pecl list -a | egrep 'redis|imagick|apcu|xdebug|memcached' | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I had issues with composer global, specifically
phing/phing
so opted for https://github.com/consolidation/cgrThats solved it for me.