【问题标题】:Read git repository from composer从作曲家读取 git 存储库
【发布时间】:2017-07-28 14:01:53
【问题描述】:

我想从 Composer 安装一个存储在 Gitlab 中的项目。所以,我在 composer.json 中添加了存储库:

"repositories": {
   "ramiro-md90": {
      "type": "git",
      "url": "https://gitlab.com/ramiro-md90/mongozard.git"
   }
}

当我做composer search ramiro-md90时,项目被列出:

rama@whitehawk:/var/www/rama.dev/rama-bundle$ composer search ramiro-md90
ramiro-md90/mongozard Mago para MongoDB
ramiro/sampledbaccess PDO Driver for Sybase Ase

但是,当我尝试使用 composer info ramiro-md90/mongozard 阅读包时,作曲家说:

[InvalidArgumentException]
找不到包 ramiro-md90/mongozard

有什么想法吗?

【问题讨论】:

    标签: git composer-php


    【解决方案1】:

    默认composer info ramiro-md90/mongozard只会显示已安装的包,试试:

    composer info --all ramiro-md90/mongozard
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-09-26
      • 2015-01-16
      • 1970-01-01
      • 2021-07-12
      • 2014-08-11
      • 2019-05-13
      • 2016-08-13
      • 1970-01-01
      相关资源
      最近更新 更多