zhwei/valet-phpbrew-ext

PHPBrew extension for Laravel Valet

0.2.1 2020-09-27 02:10 UTC

This package is auto-updated.

Last update: 2024-10-29 05:17:03 UTC


README

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