我正在尝试安装dev-master
版phpdocumentor/phpdocumentor
但是当我执行时:
composer require --dev phpdocumentor/phpdocumentor dev-master
我遇到以下问题:
Problem 1
- phpdocumentor/phpdocumentor dev-master requires phpdocumentor/reflection-docblock ~2.0 -> satisfiable by phpdocumentor/reflection-docblock[2.0.0, 2.0.0a1, 2.0.0a2, 2.0.0a3, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5] but these conflict with your requirements or minimum-stability.
- phpdocumentor/phpdocumentor dev-master requires phpdocumentor/reflection-docblock ~2.0 -> satisfiable by phpdocumentor/reflection-docblock[2.0.0, 2.0.0a1, 2.0.0a2, 2.0.0a3, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5] but these conflict with your requirements or minimum-stability.
- Installation request for phpdocumentor/phpdocumentor dev-master -> satisfiable by phpdocumentor/phpdocumentor[dev-master].
我的作曲家配置是:
"minimum-stability" : "dev",
"prefer-stable" : false,
"require":{
"phpdocumentor/reflection-docblock" : "4.3.0",
}
我遇到的问题是我当前的phpdocumentor/reflection-docblock
版本是4.3.0
。
当我尝试执行此操作时:
php composer.phar require phpdocumentor/reflection-docblock:~2.0
然后我得到一个问题:
Problem 1
- felixfbecker/advanced-json-rpc v3.0.1 requires phpdocumentor/reflection-docblock ^4.0.0 -> satisfiable by phpdocumentor/reflection-docblock[4.0.0, 4.0.1, 4.1.0, 4.1.1, 4.2.0, 4.3.0] but these conflict with your requirements or minimum-stability.
- felixfbecker/advanced-json-rpc v3.0.1 requires phpdocumentor/reflection-docblock ^4.0.0 -> satisfiable by phpdocumentor/reflection-docblock[4.0.0, 4.0.1, 4.1.0, 4.1.1, 4.2.0, 4.3.0] but these conflict with your requirements or minimum-stability.
- felixfbecker/advanced-json-rpc v3.0.1 requires phpdocumentor/reflection-docblock ^4.0.0 -> satisfiable by phpdocumentor/reflection-docblock[4.0.0, 4.0.1, 4.1.0, 4.1.1, 4.2.0, 4.3.0] but these conflict with your requirements or minimum-stability.
- felixfbecker/advanced-json-rpc v3.0.1 requires phpdocumentor/reflection-docblock ^4.0.0 -> satisfiable by phpdocumentor/reflection-docblock[4.0.0, 4.0.1, 4.1.0, 4.1.1, 4.2.0, 4.3.0] but these conflict with your requirements or minimum-stability.
- Installation request for felixfbecker/advanced-json-rpc (locked at v3.0.1) -> satisfiable by felixfbecker/advanced-json-rpc[v3.0.1].
我不太确定如何解决此依赖性问题。 我应该只下载源代码吗?
答案 0 :(得分:0)
如果felixfbecker/advanced-json-rpc
需要4.0之后的版本,则无法安装2.x版。根据{{3}},您应该从提供的phar安装phpDocumentor以避免版本冲突。
毕竟,看起来这不是一个非常可靠的框架。他们承诺一年前更新,仍然依赖于两年前的版本......