Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save patrickjahns/6e3d4e1ee73f177aed190d5b16791b1f to your computer and use it in GitHub Desktop.
Save patrickjahns/6e3d4e1ee73f177aed190d5b16791b1f to your computer and use it in GitHub Desktop.
homebrew php switch
alias phpx='php -dzend_extension=xdebug.so -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port=9001 -dxdebug.remote_host=127.0.0.1 -dxdebug.remote_autostart=1 -dxdebug.idekey=PHPSTORM $@'
alias php-switch-56='brew unlink php56 && brew unlink php70 && brew unlink php71 && brew unlink php72 && brew link php56 --force'
alias php-switch-70='brew unlink php56 && brew unlink php70 && brew unlink php71 && brew unlink php72 && brew link php70 --force'
alias php-switch-71='brew unlink php56 && brew unlink php70 && brew unlink php71 && brew unlink php72 && brew link php71 --force'
alias php-switch-72='brew unlink php56 && brew unlink php70 && brew unlink php71 && brew unlink php72 && brew link php72 --force'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment