Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vaporic/02b3d23aa85c3d53b307aa2c843a58b8 to your computer and use it in GitHub Desktop.
Save vaporic/02b3d23aa85c3d53b307aa2c843a58b8 to your computer and use it in GitHub Desktop.
switch-php() {
valet stop
brew unlink php@7.2 php@7.3 php@7.4
brew link --force --overwrite php@$1
brew services restart php@$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