Skip to content

Instantly share code, notes, and snippets.

@sandeepgill
Created May 20, 2018 10:50
Show Gist options
  • Save sandeepgill/6969336959daa141b4588277073f8df4 to your computer and use it in GitHub Desktop.
Save sandeepgill/6969336959daa141b4588277073f8df4 to your computer and use it in GitHub Desktop.
Switch php version to PHP 7.1
#!/bin/bash
# Stop existing php services
sudo brew services stop php56
# unlink php version that you do not want to use
brew unlink php56
# link php version you want to use
brew link php71 --force
# start php service
sudo brew services start php71
# 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