How to change PHP version used by composer
https://stackoverflow.com/questions/46986139/how-to-change-php-version-used-by-composer
QuestionAnswer138edited Jan 14, 2020 at 17:30You can change php version of composer without uninstalling it, follow these steps : Search for system environment variables in cortana. Click on the button "Environment variables". Under "System variables" select path and click on edit, you will see one entry like this "C:\wamp\bin\php\php5.6.13". Just change this to the folder name of the php located at your wamp/bin/php7.1.9, here php7.1.9 is folder name. Replace php5.6.13 with bin7.1.9, it will look like these "C:\wamp\bin\php\php7.1.9", just click ok on all the boxes. You are don...
Search for system environment variables in cortana.
Click on the button "Environment variables".
Under "System variables" select path and click on edit, you will see one entry like this "C:\wamp\bin\php\php5.6.13".
Just change this to the folder name of the php located at your wamp/bin/php7.1.9, here php7.1.9 is folder name.
Replace php5.6.13 with bin7.1.9, it will look like these "C:\wamp\bin\php\php7.1.9", just click ok on all the boxes.
You are don...
DA: 75 PA: 22 MOZ Rank: 77