【问题标题】:Install propel using composer使用 composer 安装 propel
【发布时间】:2012-07-07 21:25:03
【问题描述】:

我正在尝试将 propel 与 composer 一起使用,但我遇到了错误。

我的 composer.json 是:

{
    "require": {
        "propel/propel" : "*"
    }
}

错误是:

  Problem 1
    - The requested package propel/propel * could not be found.

有谁知道我错过了什么?我在谷歌上搜索,但我不明白。

【问题讨论】:

    标签: php propel composer-php


    【解决方案1】:
    {
        "require": {
            "propel/propel": "~2.0@dev"
        }
    }
    

    这是我们实际使用的。

    【讨论】:

      【解决方案2】:

      您是在尝试使用 propel 1.x 还是 propel 2?

      对 propel1 试试这个:

      {
          "require": {
              "propel/propel1": "1.6.*"
          }
      }
      

      对于推进 2,我认为这可以工作:

      {
          "require": {
              "propel/propel": "dev-master"
          }
      }
      

      【讨论】:

        猜你喜欢
        • 2015-09-26
        • 2013-07-16
        • 2023-03-15
        • 2021-06-05
        • 2014-10-09
        • 2013-09-12
        • 2019-02-10
        • 2012-10-11
        相关资源
        最近更新 更多