Reprinted from: http://blog.csdn.net/everything1209/article/details/53466725
Original:
Problem: My computer has a wamp, but PHP version is 5.5, can not meet the Laravel version requirements, so I re-download the latest version of Wamp, I installed the latest version of Wamp, with composer tips PHP version low
Workaround:
I exited the original WAMP, enabled the latest Wamp (including PHP7), but still can't composer install
initialize my Laravel project.
1) Run Php–version under win cmd to show the original version 5.5. Well, there's already an answer, not at first, this 5.5 is because I configured the environment variable, so I always point to my original PHP directory, causing composer to fail.
2) Solution: Add the 我的电脑->属性->高级->环境变量
latest PHP version in the environment variable, but must be before the environment variable, of course, you can also delete the previous PHP environment variable
3) Restart CMD or phpstorm to run composer install
it.
Issue with PHP version or older version when installing two xampp or updating XAMPP