I use XAMPP server and I use php version 8.0.0
I tried to create a Laravel project but I got this error:
In ComposerRepository.php line 1155: You must enable the openssl extension in your php.ini to load information from https://repo.packagist.org
In ComposerRepository.php line 1155:
You must enable the openssl extension in your php.ini to load information from https://repo.packagist.org
要解决这个错误,您需要打开php.ini文件并将分号删除,使其变为:
;extension=php_openssl.dll
如果您的php.ini文件中没有这行,检查您是否有该文件(C:\xampp\php\ext),并在"Dynamic Extensions"部分中添加以下内容:
extension=php_openssl.dll
要解决这个错误,您需要打开php.ini文件并将分号删除,使其变为:
如果您的php.ini文件中没有这行,检查您是否有该文件(C:\xampp\php\ext),并在"Dynamic Extensions"部分中添加以下内容: