It seems like the PHP OpenSSL extension is not installed or not properly configured. You can try the following steps to resolve the issue:
-
Check if the OpenSSL extension is enabled in your PHP configuration file (php.ini). Look for the following line and make sure it is uncommented:
extension=php_openssl.dll -
Make sure the OpenSSL library is installed on your system. You can download it from the official website (https://www.openssl.org/) or install it using a package manager like Homebrew or apt-get.
-
Check if the OpenSSL library path is added to your system's PATH environment variable. You can do this by running the following command in your terminal:
echo %PATH%Look for the path to the OpenSSL library (e.g. C:\OpenSSL\bin) and make sure it is included in the output.
-
Restart your web server (e.g. Apache) and try running Composer again.
If the issue persists, you can try reinstalling PHP and OpenSSL or seek further assistance from the Laravel community or a PHP developer.