It is possible that WAMP and Composer are using different PHP installations. Composer will use the PHP set in the PATH
environment variable.
If you want to enable the openssl extension to install Composer, first you need to check the location of the PHP installation.
- Open a Command Prompt, type:
echo %PATH%
then check for the location of your PHP installation. - Go to that location and edit the file named:
php.ini
. - Uncomment the line
extension=php_openssl.dll
by removing the semicolon at the beginning.
Now you are good to install Composer.