Skip to content

Instantly share code, notes, and snippets.

@sandeepgill
Created May 20, 2018 10:49
Show Gist options
  • Save sandeepgill/163ddd4906d559bdd03e726e4daacf26 to your computer and use it in GitHub Desktop.
Save sandeepgill/163ddd4906d559bdd03e726e4daacf26 to your computer and use it in GitHub Desktop.
Switch PHP versions to php56
#!/bin/bash
# Stop existing php services
sudo brew services stop php71
# unlink php version that you do not want to use
brew unlink php71
# link php version you want to use
brew link php56 --force
# start php service
sudo brew services start php56
# Run valet install to link new php version
valet install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment