Recently, I've been working on a project that requires me to switch between different PHP versions on my macOS. I'm wondering if anyone here can guide me on how to do that using the command line. I have already installed multiple PHP versions using Homebrew and now I need to be able to switch between them depending on the project I am working on.
I have already tried searching online for a solution, but I couldn't find a clear and concise guide. It would be really helpful if someone could provide step-by-step instructions on how to switch between PHP versions using the command line on macOS.
Thank you in advance for your help!