I was installing Composer via CLI terminal for a new Laravel project and got this error:
Warning: file_get_contents(): Unable to find the wrapper “https” – did you forget to enable it when you configured PHP? in Command line code on line 1
The solution is easy: Open
php.ini file (mine is located in
xammp/php/php.ini ) and add (or uncomment)
extension=php_openssl.dll in the list of Dynamic Extensions. Restart Apache and it should work.