Guzzle 6与最新的google php api客户端冲突
我在尝试使用composer将google php api客户端安装到现有php应用程序时遇到了一些问题。我使用以下命令安装:Guzzle 6与最新的google php api客户端冲突,php,composer-php,google-api-php-client,Php,Composer Php,Google Api Php Client,我在尝试使用composer将google php api客户端安装到现有php应用程序时遇到了一些问题。我使用以下命令安装: composer require google/apiclient:^2.0.0@RC 我得到的错误是: ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev
composer require google/apiclient:^2.0.0@RC
我得到的错误是:
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- google/apiclient v2.0.0-RC3 requires guzzlehttp/guzzle 5.2.* -> satisfiable by guzzlehttp/guzzle[5.2.0] but these conflict with your requirements or minimum-stability.
- google/apiclient v2.0.0-RC2 requires guzzlehttp/guzzle 5.2.* -> satisfiable by guzzlehttp/guzzle[5.2.0] but these conflict with your requirements or minimum-stability.
- google/apiclient v2.0.0-RC1 requires guzzlehttp/guzzle 5.2.* -> satisfiable by guzzlehttp/guzzle[5.2.0] but these conflict with your requirements or minimum-stability.
- google/apiclient v2.0.0-RC8 requires google/auth 0.8 -> satisfiable by google/auth[v0.8].
- Conclusion: don't install google/auth v0.8
- Installation request for guzzlehttp/psr7 (locked at 1.3.0) -> satisfiable by guzzlehttp/psr7[1.3.0].
- google/apiclient v2.0.0-RC6 requires google/auth 0.7 -> satisfiable by google/auth[v0.7].
- google/apiclient v2.0.0-RC7 requires google/auth 0.7 -> satisfiable by google/auth[v0.7].
- Conclusion: don't install google/auth v0.7
- google/apiclient v2.0.0-RC4 requires google/auth 0.5 -> satisfiable by google/auth[v0.5].
- google/apiclient v2.0.0-RC5 requires google/auth 0.5 -> satisfiable by google/auth[v0.5].
- Conclusion: don't install google/auth v0.5
- Installation request for google/apiclient ^2.0.0@RC -> satisfiable by google/apiclient[v2.0.0-RC1, v2.0.0-RC2, v2.0.0-RC3, v2.0.0-RC4, v2.0.0-RC5, v2.0.0-RC6, v2.0.0-RC7, v2.0.0-RC8].
Installation failed, reverting ./composer.json to its original content.
根据google php api客户端要求,它表示支持guzzle 6。你知道可能是什么问题吗
我试图安装最新的
google/auth
0.8
,但遇到了类似的问题:
- Conclusion: remove guzzlehttp/psr7 1.3.0
- Conclusion: don't install guzzlehttp/psr7 1.3.0
- google/auth v0.8 requires guzzlehttp/psr7 1.2.* -> satisfiable by guzzlehttp/psr7[1.2.0, 1.2.1, 1.2.2, 1.2.3].
- Can only install one of: guzzlehttp/psr7[1.2.0, 1.3.0].
- Installation request for guzzlehttp/psr7 (locked at 1.3.0) -> satisfiable by guzzlehttp/psr7[1.3.0]
这并不是说guzzle http/guzzle是问题所在,而是说这三个特定版本不被考虑,因为它们不支持您的版本。结论就是问题所在。这似乎是
google/auth
的问题。你已经安装了它的一个版本了吗?没有,我还没有安装google/auth。我试图安装google/auth 0.8,这是最新的,但也遇到了类似的问题:-结论:删除guzzlehttp/psr7 1.3.0-结论:不要安装guzzlehttp/psr7 1.3.0-google/auth v0.8需要guzzlehttp/psr7 1.2.->guzzlehttp/psr7可以满足[1.2.0,1.2.1,1.2.2,1.3]。-只能安装以下其中一个:guzzlehttp/psr7[1.2.0,1.3.0]。-guzzlehttp/psr7的安装请求(锁定在1.3.0)->guzzlehttp/psr7[1.3.0]可以满足我想,我知道问题出在哪里,google/auth只支持guzzlehttp/psr7 1.2.*这意味着我需要降级guzzle,或者升级到guzzlehttp/psr7 1.3可能是guzzlehttp/psr7 1.3。这并不是说问题出在guzzlehttp/guzzle
,这意味着这三个特定的版本不被考虑,因为它们不支持您的版本。结论就是问题所在。这似乎是google/auth
的问题。你已经安装了它的一个版本了吗?没有,我还没有安装google/auth。我试图安装google/auth 0.8,这是最新的,但也遇到了类似的问题:-结论:删除guzzlehttp/psr7 1.3.0-结论:不要安装guzzlehttp/psr7 1.3.0-google/auth v0.8需要guzzlehttp/psr7 1.2.->guzzlehttp/psr7可以满足[1.2.0,1.2.1,1.2.2,1.3]。-只能安装以下其中一个:guzzlehttp/psr7[1.2.0,1.3.0]。-guzzlehttp/psr7的安装请求(锁定在1.3.0)->guzzlehttp/psr7[1.3.0]可以满足我想,我知道问题出在哪里,google/auth只支持guzzlehttp/psr7 1.2.*所以这意味着我需要降级guzzle或google/auth并将其升级到guzzlehttp/psr7 1.3的可能副本