我有一个自己构建的PHP框架,现在我想将所有东西分开到不同的存储库中,并将其设置在composer中以使我的工作更轻松。
基本上,我有三个相关的存储库:一个是用作收集数据类型基类的集合类(“liftkit / collection”),另一个是输入变量的包装器(“liftkit / input”,依赖于集合库),第三个是核心(“liftkit / core”,依赖于输入包装器)。
当我在“liftkit / input”上运行composer update
时,它会安装“liftkit / collection”并正常运行,但是当我在“liftkit / core”上运行它时,它会给我以下错误:
问题1 - liftkit/input @dev的安装请求 -> 可满足于liftkit/input [dev-master]。 - liftkit/input dev-master 要求 liftkit/collection dev-master -> 找不到匹配的软件包。
这是我的composer.json文件:
{
"name": "liftkit/collection",
"description": "LiftKit base class for collections",
"license": "LGP-2.1",
"autoload": {
"psr-4": {
"LiftKit\\": "src/"
}
},
"require": {
},
"require-dev": {
"phpunit/phpunit": "4.5.*"
}
}
{
"name": "liftkit/input",
"description": "LiftKit input wrappers",
"license": "LGP-2.1",
"autoload": {
"psr-4": {
"LiftKit\\": "src/"
}
},
"require": {
"liftkit/collection": "dev-master"
},
"require-dev": {
"phpunit/phpunit": "4.5.*"
},
"repositories": [
{
"type": "git",
"url": "https://github.com/liftkit/collection"
}
]
}
{
"name": "liftkit/core",
"description": "LiftKit Core Libraries",
"license": "LGP-2.1",
"minimum-stability": "dev",
"autoload": {
"psr-4": {
"LiftKit\\": "src/"
}
},
"require": {
"liftkit/input": "dev-master",
"liftkit/dependency-injection": "dev-master"
},
"require-dev": {
"phpunit/phpunit": "4.5.*"
},
"repositories": [
{
"type": "git",
"url": "https://github.com/liftkit/input"
},
{
"type": "git",
"url": "https://github.com/liftkit/dependency-injection"
}
]
}
任何帮助都非常感激。谢谢。