composer 更新报错:SSL/TLS

在项目下执行一下更新命令时报错:

composer update

[Composer\Exception\NoSslException]
The openssl extension is required for SSL/TLS protection but is not available. If you can not enable the openssl extension, you can disable this error, at your own risk, by setting the ‘disable-tls’ option to true. 

 

=======================

解决方法

进入php.ini 修改配置打开ssl

//将这行代码前的 ; 去掉
extension=php_openssl.dll