Skip to content

Instantly share code, notes, and snippets.

@dinhquochan
Created June 7, 2021 16:33
Show Gist options
  • Save dinhquochan/db798295e43f7b418c4492c59d25d080 to your computer and use it in GitHub Desktop.
Save dinhquochan/db798295e43f7b418c4492c59d25d080 to your computer and use it in GitHub Desktop.
PHP Versions Switcher
function phpv() {
valet stop
brew unlink [email protected] php
brew link --force --overwrite $1
brew services start $1
composer global update
rm -f ~/.config/valet/valet.sock
valet install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment