DEV Community

Discussion on: Switching between PHP versions with Homebrew

Collapse
 
dcblog profile image
David Carr

I have this in my bash profile:

export PATH=$HOME/bin:/usr/local/bin:$PATH

Which takes care of linking to the PHP version I believe so it should work for both. I tend to use PHP's built in web server locally so the command line version works fine.