- Composer install
composer global require zhwei/valet-phpbrew-ext
- Register extension file to Valet
ln -s $HOME/.composer/vendor/zhwei/valet-phpbrew-ext/phpbrew-ext.php $HOME/.config/valet/Extensions/phpbrew-ext.php
- Run
# create site (PHP_VERSION and SITE_NAME is optional)
sudo valet phpbrew:link [PHP_VERSION] [SITE_NAME]
# list sites created by phpbrew:link
sudo valet phpbrew:links
# unlink site (SITE_NAME is optional)
sudo valet phpbrew:unlink [SITE_NAME]
# remove extension register file
rm $HOME/.config/valet/Extensions/phpbrew-ext.php
# remove global dependency
composer global remove zhwei/valet-phpbrew-ext