Closed ppshobi closed 4 years ago
I guess the better option for now is to downgrade to guzzle6 and use the guzzle-6 adapter. I was able to do it actually
Yes, this package doesn't currently support Guzzle 7. Version 10.0.0, when it is released, will support Guzzle 7, but it is not ready to even try yet (pending https://github.com/KnpLabs/php-github-api/pull/910).
I guess the better option for now is to downgrade to guzzle6 and use the guzzle-6 adapter. I was able to do it actually
Yes. To explain what's going on here: There is not a Guzzle 7 PHP-HTTP adapter, and there never will be (because those interfaces where replaced by PSR-17 and PSR-18). The next major version of the upstream package will be using PSR-17/18 factories (due to https://github.com/KnpLabs/php-github-api/pull/885, https://github.com/KnpLabs/php-github-api/pull/888, https://github.com/KnpLabs/php-github-api/pull/910), and the 10.0 branch of this package is ready (https://github.com/GrahamCampbell/Laravel-GitHub/compare/9.3...10.0).
Once version 10.0.0 is tagged, you will be able to install it using the versions:
graham-campbell/github:^10.0 guzzlehttp/guzzle:^7.0 http-interop/http-factory-guzzle:^1.0
guzzlehttp/guzzle
provides PSR-18 factories, and http-interop/http-factory-guzzle
provides PSR-17 factories, both of them using guzzlehttp/psr7
for the PSR-7 implementation. In the future guzzlehttp/psr7
will likely get the PSR-17 factories built-in to it, but for now, it doesn't have that, so you need that additional interop package.
When I run the install command from the repository readme I am getting the following
This is the error message I am receiving at the end with
composer require graham-campbell/github -vvv
flag passed.my
composer.json
require sectionAny help on mitigating the issue will be greatly appreciated.