hwi oauth捆绑包和Symfony 4.2:无法安装
我正在尝试用symfony 4.2安装HWI oauth捆绑包,但它不起作用。 我遵循描述的步骤:但它不起作用 在composer输出下面:hwi oauth捆绑包和Symfony 4.2:无法安装,symfony,oauth,composer-php,symfony4,Symfony,Oauth,Composer Php,Symfony4,我正在尝试用symfony 4.2安装HWI oauth捆绑包,但它不起作用。 我遵循描述的步骤:但它不起作用 在composer输出下面: composer require hwi/oauth-bundle php-http/guzzle6-adapter php-http/httplug-bundle Using version ^0.6.3 for hwi/oauth-bundle Using version ^2.0 for php-http/guzzle6-adapter Using
composer require hwi/oauth-bundle php-http/guzzle6-adapter php-http/httplug-bundle
Using version ^0.6.3 for hwi/oauth-bundle
Using version ^2.0 for php-http/guzzle6-adapter
Using version ^1.14 for php-http/httplug-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "4.2.*"
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: don't install hwi/oauth-bundle 0.6.3
- php-http/client-common v1.6.0 requires symfony/options-resolver ^2.6 || ^3.0 -> no matching package found.
- php-http/client-common v1.4.2 requires symfony/options-resolver ^2.6 || ^3.0 -> no matching package found.
- php-http/client-common v1.4.1 requires symfony/options-resolver ^2.6 || ^3.0 -> no matching package found.
- php-http/client-common v1.4.0 requires symfony/options-resolver ^2.6 || ^3.0 -> no matching package found.
- php-http/client-common 1.5.0 requires symfony/options-resolver ^2.6 || ^3.0 -> no matching package found.
- php-http/client-common 1.3.0 requires symfony/options-resolver ^2.6 || ^3.0 -> no matching package found.
- Installation request for hwi/oauth-bundle ^0.6.3 -> satisfiable by hwi/oauth-bundle[0.6.3, 0.6.x-dev].
- hwi/oauth-bundle 0.6.x-dev requires php-http/client-common ^1.3 -> satisfiable by php-http/client-common[1.3.0, 1.5.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.9.0, 1.x-dev, v1.4.0, v1.4.1, v1.4.2, v1.6.0].
- php-http/client-common 1.7.0 requires php-http/httplug ^1.1 -> satisfiable by php-http/httplug[v1.1.0].
- php-http/client-common 1.8.0 requires php-http/httplug ^1.1 -> satisfiable by php-http/httplug[v1.1.0].
- php-http/client-common 1.8.1 requires php-http/httplug ^1.1 -> satisfiable by php-http/httplug[v1.1.0].
- php-http/client-common 1.8.2 requires php-http/httplug ^1.1 -> satisfiable by php-http/httplug[v1.1.0].
- php-http/client-common 1.9.0 requires php-http/httplug ^1.1 -> satisfiable by php-http/httplug[v1.1.0].
- php-http/client-common 1.x-dev requires php-http/httplug ^1.1 -> satisfiable by php-http/httplug[v1.1.0].
- Conclusion: don't install php-http/httplug v1.1.0
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
- It's a private package and you forgot to add a custom repository to find it
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
Installation failed, reverting ./composer.json to its original content.
编写器需要hwi/oauth捆绑包--忽略平台需求
Using version ^0.6.3 for hwi/oauth-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "4.2.*"
Your requirements could not be resolved to an installable set of packages.
Problem 1
- hwi/oauth-bundle 0.6.x-dev requires php-http/client-implementation ^1.0 -> no matching package found.
- hwi/oauth-bundle 0.6.3 requires php-http/client-implementation ^1.0 -> no matching package found.
- Installation request for hwi/oauth-bundle ^0.6.3 -> satisfiable by hwi/oauth-bundle[0.6.3, 0.6.x-dev].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
- It's a private package and you forgot to add a custom repository to find it
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
Installation failed, reverting ./composer.json to its original content.
Using version ^0.6.3 for hwi/oauth-bundle
Using version ^2.0 for php-http/guzzle6-adapter
Using version ^1.14 for php-http/httplug-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "4.2.*"
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: don't install hwi/oauth-bundle 0.6.3
- php-http/client-common v1.6.0 requires symfony/options-resolver ^2.6 || ^3.0 -> no matching package found.
- php-http/client-common v1.4.2 requires symfony/options-resolver ^2.6 || ^3.0 -> no matching package found.
- php-http/client-common v1.4.1 requires symfony/options-resolver ^2.6 || ^3.0 -> no matching package found.
- php-http/client-common v1.4.0 requires symfony/options-resolver ^2.6 || ^3.0 -> no matching package found.
- php-http/client-common 1.5.0 requires symfony/options-resolver ^2.6 || ^3.0 -> no matching package found.
- php-http/client-common 1.3.0 requires symfony/options-resolver ^2.6 || ^3.0 -> no matching package found.
- Installation request for hwi/oauth-bundle ^0.6.3 -> satisfiable by hwi/oauth-bundle[0.6.3, 0.6.x-dev].
- hwi/oauth-bundle 0.6.x-dev requires php-http/client-common ^1.3 -> satisfiable by php-http/client-common[1.3.0, 1.5.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.9.0, 1.x-dev, v1.4.0, v1.4.1, v1.4.2, v1.6.0].
- php-http/client-common 1.7.0 requires php-http/httplug ^1.1 -> satisfiable by php-http/httplug[v1.1.0].
- php-http/client-common 1.8.0 requires php-http/httplug ^1.1 -> satisfiable by php-http/httplug[v1.1.0].
- php-http/client-common 1.8.1 requires php-http/httplug ^1.1 -> satisfiable by php-http/httplug[v1.1.0].
- php-http/client-common 1.8.2 requires php-http/httplug ^1.1 -> satisfiable by php-http/httplug[v1.1.0].
- php-http/client-common 1.9.0 requires php-http/httplug ^1.1 -> satisfiable by php-http/httplug[v1.1.0].
- php-http/client-common 1.x-dev requires php-http/httplug ^1.1 -> satisfiable by php-http/httplug[v1.1.0].
- Conclusion: don't install php-http/httplug v1.1.0
根据,您可以尝试以下操作:
composer require php-http/guzzle6-adapter:^1.1
composer require php-http/httplug-bundle
composer require hwi/oauth-bundle
如果有人有同样的问题,我会回答自己的问题。我已经在Nico的回复评论中写下了这一点,但它并不容易阅读 我通过添加我的composer.json来解决我的问题:
"hwi/oauth-bundle": "^0.6.3",
"php-http/guzzle6-adapter": "~1.1.1",
"php-http/httplug-bundle": "~1.13"
然后我做了一个
composer update
所有这些都已安装并运行 composer req hwi/oauth bundle——忽略平台需求我试试这个,但它不起作用。我编辑了我的帖子谢谢你的回答。我尝试过,但没有成功,但您的回答让我尝试另一种安装方式,修改composer.json并指定所有版本:“hwi/oauth bundle”:“^0.6.3”,“php http/GUZULE6适配器”:“~1.1.1”,“php http/httplug bundle”:“~1.13”。而且它有效!(php:7.2,symfony 4.2)。谢谢你,尼科!当Symfony要求运行一个配方时,你回答了什么<代码>是否要执行此配方?[y] 是[n]否[a]对所有软件包都是,仅对当前安装会话是[p]永久是,从此不再要求此项目(默认为n):n这个答案启发了我这里的另一个答案
composer update