composer searchすると、failed to open stream: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?

Windowsのcomposerでパッケージを探そうとしたら、エラーが発生した。

> composer search goutte
  [Composer\Downloader\TransportException]
  The "http://packagist.org/search.json?q=goutte" file could not be downloaded: failed to open stream: Unable to find
   the socket transport "ssl" - did you forget to enable it when you configured PHP?

どうやら、php.iniにextension=php_openssl.dll が必要そうだ。

Socket transport “ssl” in PHP not enabled c:\php.iniの設定を変更して再度実行してみたら、動作した!

extension=php_bz2.dll
extension=php_curl.dll
extension=php_fileinfo.dll
extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_gmp.dll
;extension=php_intl.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
extension=php_mbstring.dll
;extension=php_exif.dll ; Must be after mbstring as it depends on it
extension=php_mysql.dll
extension=php_mysqli.dll
;extension=php_oci8_12c.dll ; Use with Oracle Database 12c Instant Client
extension=php_openssl.dll   ; ★★★コメントアウトを解除
;extension=php_pdo_firebird.dll
extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
;extension=php_pspell.dll
;extension=php_shmop.dll
>composer search goutte
fabpot/goutte A simple PHP Web Scraper
fabpot/goutte A simple PHP Web Scraper
socloz/goutte A simple PHP Web Scraper
elvedia/goutte Laravel 4 package of Goutte
weidner/goutte Laravel 5 package for Gouette, a simple PHP Web Scraper
behat/mink-goutte-driver Goutte driver for Mink framework
laracasts/integrated Simple, intuitive integration testing with PHPUnit.
diggin/Diggin-Bridge-Guzzle-AutoCharsetEncodingPlugin Guzzle Plugin charset auto encoding
borisguery/gisele Gisele allows you to do Google Search on CLI (currently supports Image search, Web search, and News se
arch)
famelo/mink-goutte-driver Goutte driver for Mink framework
goutte/wordpress-bundle
goutte/tree-bundle Goutte's Rooted Tree Library
c2is/walker A basic wrapper around Goutte to crawl a website
knyga/webextractor Extracting data from web page with different extractors like css, xpath, regex...
mfsousa/goutte A simple PHP Web Scraper
jhonn921007/goutte A simple PHP Web Scraper