- Copy the file
valetproxy.php
inside your computer - rename as valetproxy
- chmod u+x valetproxy
- mv valetproxy /usr/local/bin/ (like composer installation process)
- edit your ~/.zshrc, ~/.bash_profile
- add these following lines
alias php='valetproxy --detect && $(valetproxy) php'
alias composer='valetproxy --detect && $(valetproxy) composer'
- start a new terminal window
- voilà