Creating a "topthink/think=5.0.*" project at "./test_tp5" In Factory.php line 648: The openssl extension is required for SSL/TLS protection but is not available. If you can not enable the openssl ex tension, you can disable this error, at your own risk, by setting the 'disable-tls' option to true. create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--add-repository] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--ask] [--] [<package> [<directory> [<version>]]]
安装openssl扩展
//1、在php.ini文件中查找并确保以下行没有注释掉: 如果有注释,去掉分号即可。
;extension=openssl
//2、请检查php.ini文件中的以下行,去掉注释
extension_dir = "ext" ; 或类似的路径
//3、验证openssl扩展是否加载:打开命令提示符或终端,运行以下命令检查是否加载了openssl扩展:
php -m | findstr openssl
如果没有 php .ini 将php.ini-production或 php.ini-development任选一个改为php .ini