Use the following method to solve the problem perfectly!
Composer (https://getcomposer.org/) is a dependency management tool under PHP. You can declare the class libraries you need in your project, and composer will install them for you in your project. If you understand node's NPM or Ruby's bundler, you understand what it does, but it's not a package manager.
Install composer in the Windows Wamp environment (note: Composer requires PHP version in 5.3.2+) and you may experience this installation failure: The error message is "The OpenSSL extension is missing, which Would reduce the security and stability of Composer. If possible you should enable it or recompile PHP with--with-openssl "to the effect that your PHP lacks the OpenSSL extension.
You might go to the Wamp console in the lower right corner of the screen, load the php OpenSSL extension, or remove the comments from the Extension=php_openssl.dll line at the php.ini and restart the server, and the results are still not working.
The correct way is in the PHP installation directory, such as C:\wamp\bin\php\php5.3.3\, find a directory of php.ini files, and then remove Extension=php_ Openssl.dll the comments at the beginning of this line, and then you can install composer successfully.
You can see that there are two php.ini above, yes Wamp in Apache and in CLI (command line) mode using different php.ini files, when you go to the Wamp console to enable Php_openssl This extension, is enabled for Apache, not CLI. While modifying the php.ini configuration file in the PHP installation directory, you can enable OpenSSL in CLI mode.
http://blog.csdn.net/sky_zhe/article/details/21413241
Troubleshoot installation failures under Windows composer due to Php_openssl extension missing