/valet-phpbrew-ext

PHPBrew extension for Laravel Valet

Primary LanguagePHP

PHPBrew extension for Laravel Valet

Latest Stable Version Total Downloads

Usage

  1. Composer install
composer global require zhwei/valet-phpbrew-ext
  1. Register extension file to Valet
ln -s $HOME/.composer/vendor/zhwei/valet-phpbrew-ext/phpbrew-ext.php $HOME/.config/valet/Extensions/phpbrew-ext.php
  1. 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]

Uninstall

# remove extension register file
rm $HOME/.config/valet/Extensions/phpbrew-ext.php

# remove global dependency
composer global remove zhwei/valet-phpbrew-ext