1

我有一个奇怪的问题...

project-a 是我的主要项目。project-b 是我的库,已签入 subversion

project-b 的 composer.json

{
"name": "fragger/baseclasses",
"version" : "0.0.1-dev",
"description": "Baseclasses and Interfaces",
"require": {
    "silex/silex": "1.0.x-dev",
    "3rd-party/smarty": "3.*",
    "swiftmailer/swiftmailer": "4.2-dev"
},
"autoload": {
    "psr-0": { "baseclasses": "src/" }
}
}

和 project-b 的 composer.json

{
"repositories" : [
    {
        "type": "vcs",
        "url" : "svn+ssh://....."
    }
],
"require": {
    "fragger/baseclasses": ">=0.0.1-dev"
}
}

安装命令的输出

php composer.phar install
Loading composer repositories with package information
Installing dependencies                               
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for fragger/baseclasses >=0.0.1-dev -> satisfiable by     fragger/baseclasses dev-trunk.
    - fragger/baseclasses dev-trunk requires silex/silex 1.0.x-dev -> no matching package     found.

但是作曲家单独安装在项目a中,工作正常

4

1 回答 1

1

您可以在packgist上找到有关软件包的详细信息,例如 for Silex,但您的所有依赖项似乎都有无效的版本字符串。

取而代之的"silex/silex": "1.0.x-dev"是必须命名"silex/silex": "1.0.*@dev"。没有分支,1.0.x并且分支的正确版本字符串dev-branchname无论如何都是;)

于 2013-02-08T18:34:00.293 回答