我正在尝试安装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].
我不太确定如何解决这个依赖性问题。我应该只是下载Sourcecode吗?
如果 felixfbecker/advanced-json-rpc
需要的版本晚于4.0,则不能安装版本2.x。根据https://github.com/phpdocumentor/phpdocumentor2/issues/1834,您应该从提供的PHAR中安装phpdocumentor,以避免版本冲突。
毕竟,这似乎不是一个真正扎实的框架。他们答应了一年前的更新,但仍然依赖两年的版本...