[Composer\Exception\NoSslException]


  The openssl extension is required for SSL/TLS protection but is not available. If you can not enable the openssl ex
  tension, you can disable this error, at your own risk, by setting the 'disable-tls' option to true.
  大體意思就是composer要求使用openssl連接,百度相關問題,解決思路分為兩種: 一、禁用openssl,結果是治標不治本放棄 二、開啟php的openssl擴展,下載ca證書 具體操作如下: 1、開啟php擴展,左鍵wamp-php-php擴展-php_openssl前面打勾。 2、在D:\phpstudy\php\php5.4.12(看個人安裝路徑確定)下找到php.ini文件,用sublime打開。 查找?extension=php_openssl.dll ,刪除extension=php_openssl.dll前面的分號,取消注釋,從而啟用OpenSSL插件。 注意:因為SSL連接需要認證,所以繼續(xù)下面的步驟之前,需要準備好CA證書(建議把證書保存到D:\wamp\wamp\bin\php\php5.4.12\verify目錄中),可以從https://curl.haxx.se/docs/caextract.html處下載。(如果直接打開文件的話,另存為修改文件名即可) 3、如果php.ini文件中能夠找到 ;openssl.cafile= 和上面一樣,去掉分號注釋,設置CA證書為D:\phpstudy\php\php5.4.12\verify,即 openssl.cafile= "D:\phpstudy\php\php5.4.12\verify\cacert.pem"如果無法找到直接添加 openssl.cafile= "D:\phpstudy\php\php5.4.12\verify\cacert.pem" 完成上面操作再次在cmd環(huán)境中運行composer update 問題解決,參考文章