Symfony 项目

Posted

技术标签:

【中文标题】Symfony 项目【英文标题】:Symfony project 【发布时间】:2019-05-23 17:26:22 【问题描述】:

试图创建一个 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

【问题讨论】:

***.com/questions/5444249/… Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?的可能重复 The openssl extension is required for SSL/TLS protection的可能重复 【参考方案1】:

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

Installing Composer for Windows - unable to find wrapper "https"

您的 php 中似乎没有启用 openssl

【讨论】:

以上是关于Symfony 项目的主要内容,如果未能解决你的问题,请参考以下文章

Symfony 4 API 平台和 JWT:如何使用 Symfony 客户端项目登录 API?

如何托管多个 symfony 项目?

Symfony 项目

Symfony 项目 CMS

我可以在不使用 composer 甚至在 XAMPP 中安装 Symfony 的情况下运行 Symfony 项目吗?

Symfony 4项目生产问题