I've recently installed Chocolately on Windows. I've then installed two versions of PHP (7.4.5) and (7.2.30) which I am successful in doing so. Now I am trying to figure out how I can switch between the two versions.
Is there a command to quickly switch between two versions of PHP (or any package for that matter)? For Ruby, I believe you have to install a separate package - https://chocolatey.org/packages/pik#description
Thanks in advance!
NOTE: I've installed 7.4.5 by simply executing choco install php
and then 7.2.30 by executing choco install php --version 7.2.30 -my
. After running both, running php -v
would result in 7.4.5
.