首页 > 解决方案 > Symfony 项目

问题描述

试图创建一个 symfony 项目并得到一个错误。

所以我在控制台中输入:

composer create-project symfony/website-skeleton my-project

控制台输出:

You are running Composer with SSL/TLS protection disabled.
Your configuration does not allow connections to http://packagist.org/packages.json. See https://getcomposer.org/doc/06-
config.md#secure-http for details.
http://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of da
te

  [Composer\Downloader\TransportException]
  The "https://packagist.org/p/symfony/website-skeleton%24e4840857811b44fdd2effbe71a2cd41d6c17c10fe4f92248daacc2c4e0c
  ecd67.json" file could not be downloaded: Unable to find the wrapper "https" - did you forget to enable it when you
   configured PHP?
  failed to open stream: No such file or directory

标签: phpsymfony

解决方案


看看这个解决方案,它可能会帮助你:

为 Windows 安装 Composer - 找不到包装器“https”

似乎您的 php 中没有启用 openssl


推荐阅读