I want to use another php version on my machine than the one already installed using WAMP (2 PHP version installed)
.
PHP 5.6
PHP7.0
. Whenever I choose PHP 7 from the control panel of WAMP and then run php -v
it still printing PHP5.6 (CLI)...
instead of PHP7
.
How can I use PHP7 without reinstalling the composer again?
So, while the 7.2 version is used to run Composer, the scripts called by Composer use the default command.
It also makes maintaining the latest versions of all required libraries easier because you can simply run composer update to get the latest compatible packages.
You can change php version of composer without uninstalling it, follow these steps :
php -v
, press enter and you should see php7.1.9.php -v
again in cmd , it will work.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With