0

I use XAMPP server and I use php version 8.0.0

I tried to create a Laravel project and this error appeared:

In ComposerRepository.php line 1155:

You must enable the openssl extension in your php.ini to load information from https://repo.packagist.org

IMSoP
  • 89,526
  • 13
  • 117
  • 169
abedollah
  • 9
  • 1

1 Answers1

-1

For solving this error, you must open php.ini and remove the semicolon to:

;extension=php_openssl.dll

If you don't have that line inside php.ini, check you have the file ( C:\xampp\php\ext) and add this to php.ini in the "Dynamic Extensions" section:

extension=php_openssl.dll
Ariful Islam
  • 696
  • 6
  • 11