Installing Composer OpenSSL Issue
If you are a windows user, make sure to uncomment this line in your php.ini file:
extension_dir = "ext"
It makes sure that PHP is taking the extension from its own ext library.
@Javacadabra, extensions like php_openssl.dll will be under php/ext/ directory, you could fix this path in the config file or you could copy that specific file from php/ext directory to php directory.
in your case it will be c:\php\ext