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 

以上就是composer 更新报错:SSL/TLS的全文介绍,希望对您学习和使用php有所帮助.

文章转载自 http://www.zhimengzhe.com/php/151471.html