Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php7.2.1无法使用? #10

Closed
henggedaren opened this issue Jul 2, 2021 · 5 comments · Fixed by #11
Closed

php7.2.1无法使用? #10

henggedaren opened this issue Jul 2, 2021 · 5 comments · Fixed by #11

Comments

@henggedaren
Copy link

使用的是7.2.1的版本,composer报错如下:

Your requirements could not be resolved to an installable set of packages.

Problem 1
- wechatpay/wechatpay 1.0.2 requires guzzlehttp/guzzle ^7.0 -> satisfiable by guzzlehttp/guzzle[7.0.0, 7.0.1, 7.1.0, 7.1.1, 7.2.0, 7.3.0].
- wechatpay/wechatpay 1.0.3 requires guzzlehttp/guzzle ^7.0 -> satisfiable by guzzlehttp/guzzle[7.0.0, 7.0.1, 7.1.0, 7.1.1, 7.2.0, 7.3.0].
- wechatpay/wechatpay 1.0.1 requires php ^7.2.5 || ^8.0 -> your PHP version (7.2.1) does not satisfy that requirement.
- wechatpay/wechatpay 1.0.0 requires php ^7.2.5 || ^8.0 -> your PHP version (7.2.1) does not satisfy that requirement.
- guzzlehttp/guzzle 7.3.0 requires php ^7.2.5 || ^8.0 -> your PHP version (7.2.1) does not satisfy that requirement.
- guzzlehttp/guzzle 7.2.0 requires php ^7.2.5 || ^8.0 -> your PHP version (7.2.1) does not satisfy that requirement.
- guzzlehttp/guzzle 7.1.1 requires php ^7.2.5 -> your PHP version (7.2.1) does not satisfy that requirement.
- guzzlehttp/guzzle 7.1.0 requires php ^7.2.5 -> your PHP version (7.2.1) does not satisfy that requirement.
- guzzlehttp/guzzle 7.0.1 requires php ^7.2.5 -> your PHP version (7.2.1) does not satisfy that requirement.
- guzzlehttp/guzzle 7.0.0 requires php ^7.2.5 -> your PHP version (7.2.1) does not satisfy that requirement.
- Installation request for wechatpay/wechatpay ^1.0 -> satisfiable by wechatpay/wechatpay[1.0.0, 1.0.1, 1.0.2, 1.0.3].

@TheNorthMemory
Copy link
Collaborator

guzzle7 最低支持的PHP版本是 7.2.5,所以你的 7.2.1 装不上。

@TheNorthMemory
Copy link
Collaborator

另外 PHP7.2 都已经EOL了,PHP官方也都停止维护了,建议你升级至PHP7.4版本

@henggedaren
Copy link
Author

另外 PHP7.2 都已经EOL了,PHP官方也都停止维护了,建议你升级至PHP7.4版本

升级是没有问题的。但是个人觉得最低支持7.0版本比较通用吧,毕竟很多老的项目一时半会没法升级到这么高的版本。

@TheNorthMemory
Copy link
Collaborator

TheNorthMemory commented Jul 2, 2021

依赖的关键的加解密功能ext-openssl在PHP7.1上才支持aes-gcm;兼容php7.0会比较困难,要做许多适配,另外这个PHP7.2.5也是随guzzle7限制的,如果是低版本PHP可以尝试用wechatpay-guzzle-middleware

@henggedaren
Copy link
Author

依赖的关键的加解密功能ext-openssl在PHP7.1上才支持aes-gcm;兼容php7.0会比较困难,要做许多适配,另外这个PHP7.2.5也是随guzzle7限制的,如果是低版本PHP可以尝试用wechatpay-guzzle-middleware

了解了,非常感谢解答!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants