php-wbootstrap allow you to execute the good version of PHP according Wampserver configuration in Windows system.
In general, if you use many version of php with Wampserver, you configure only one path to your php.exe (i.e. C:\wamp\bin\php\php7.0.10\).
If you use another version of php, you have a conflict with command prompt (cmd) based on the path and php launched by Wampserver.
php-wbootstrap make easy the switch between each version of php through Wampserver.
php-wbootstrap is built with gcc of MinGW by the command:
gcc main.c- Download the last release of this tool
- Copy and rename
php-X.X.X.exetoC:\wamp\php.exe - In variable environment, add the following path
C:\wamp\php - Make sure that you don't have another path like
C:\wamp\bin\php\phpX.X.X\
With you shell command prompt, execute phpcommand with your parameters. Example:
php composer.phar updateThis tool will display the php version executed like:
C:\wamp\www\project>php composer.phar update
PHP Version: 7.0.10
...