Skip to content

Instantly share code, notes, and snippets.

@sandeepgill
Created May 20, 2018 10:49
Show Gist options
  • Select an option

  • Save sandeepgill/163ddd4906d559bdd03e726e4daacf26 to your computer and use it in GitHub Desktop.

Select an option

Save sandeepgill/163ddd4906d559bdd03e726e4daacf26 to your computer and use it in GitHub Desktop.

Revisions

  1. sandeepgill created this gist May 20, 2018.
    16 changes: 16 additions & 0 deletions php56.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    #!/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