Install phpbrew && php 7.3.10 on macOS
xcode-select --install
# You should install brew https://brew.sh/index_fr
brew install automake autoconf curl pcre bison re2c mhash libtool icu4c gettext jpeg openssl libxml2 mcrypt gd gmp libevent zlib libzip bzip2 imagemagick pkg-config
brew link icu4c
brew link --force openssl
brew link --force libxml2
curl -L -O https://github.com/phpbrew/phpbrew/raw/master/phpbrew
chmod +x phpbrew
sudo mv phpbrew /usr/local/bin/phpbrew
phpbrew init
echo "[[ -e ~/.phpbrew/bashrc ]] && source ~/.phpbrew/bashrc" >> ~/.bashrc
# See also https://github.com/phpbrew/phpbrew#variants
# add +zts if needed
phpbrew --debug install php-7.3.10 +gd +default +sqlite +mysql +bz2=/usr/local/Cellar/bzip2/1.0.6_1/ +zlib=/usr/local/Cellar/zlib/1.2.11/ -- --with-gd=shared
# use php 7.3.10 as default php binary
phpbrew switch 7.3.10
#
# Note: php.ini path
# ~/.phpbrew/php/php-7.3.10/etc/php.ini
#
# See also https://github.com/phpbrew/phpbrew#installing-extra-apps
phpbrew app get phpunit
phpbrew app get phpcs
phpbrew app get composer
# See also https://github.com/phpbrew/phpbrew/wiki/Extension-Installer
phpbrew ext install xdebug stable
phpbrew ext install intl stable
phpbrew ext install soap stable
phpbrew ext install gmp stable
phpbrew ext install gd stable -- --with-zlib-dir=/usr/local/Cellar/zlib/1.2.11/
phpbrew ext install exif stable
phpbrew --debug ext install imagick stable -- --with-imagick=/usr/local/Cellar/imagemagick/7.0.8-43/