Skip to content

Instantly share code, notes, and snippets.

@shakdaniel
Last active March 20, 2020 16:37
Show Gist options
  • Save shakdaniel/9807408c247eabf1dd378c42bfe58567 to your computer and use it in GitHub Desktop.
Save shakdaniel/9807408c247eabf1dd378c42bfe58567 to your computer and use it in GitHub Desktop.
[Dev Env Cmds] Local Dev Setup
$ sudo apachectl start
$ sudo apachectl stop
$ sudo apachectl -k restart

PHP Switcher Script

$ curl -L https://gist.githubusercontent.com/rhukster/f4c04f1bf59e0b74e335ee5d186a98e2/raw > /usr/local/bin/sphp
$ chmod +x /usr/local/bin/sphp
$ echo $PATH

/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Library/Apple/bin

check .zshrc export PATH=/usr/local/bin:/usr/local/sbin:$PATH

sphp 7.3
sphp 7.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment