Created
June 7, 2021 16:33
-
-
Save dinhquochan/db798295e43f7b418c4492c59d25d080 to your computer and use it in GitHub Desktop.
PHP Versions Switcher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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