我有一个我已经构建的PHP框架,我正在尝试将所有内容分成不同的repos并将其设置在composer中以使我的生活更轻松.
基本上,我有3个repos问题:一个用于集合类,用作集合数据类型的基类("liftkit/collection"),另一个是输入变量的包装器("liftkit/input",它依赖于集合repo),以及核心的第三个("liftkit/core",它取决于输入包装器.
当我运行composer update"liftkit/input"时,它会安装"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", …Run Code Online (Sandbox Code Playgroud)