[REQ][PHP] Bump guzzle version to 8
Is your feature request related to a problem? Please describe.
The generated code adds the following requirements to the "require" section of the composer.json:
"require": {
"guzzlehttp/guzzle": "^7.4.5",
"guzzlehttp/psr7": "^2.0"
}Meanwhile, guzzlehttp/guzzle v8 and guzzle/psr7 v3 have been released.
It would be nice if the generated code supports both/the new versions.
Describe the solution you'd like
One solution might be to make the code compatible with guzzle 7 and 8 at the same time. I don't know if this is even possible, though.
Describe alternatives you've considered
Alternatively, support for guzzle 7 could be dropped - similar to what has been done when switching to guzzle 7 in https://github.com/OpenAPITools/openapi-generator/pull/10585.
Ideally, the generated PHP code could be made Guzzle agnostic by relying on PSR17/PSR18 instead. This was already suggested in https://github.com/OpenAPITools/openapi-generator/issues/7869#issuecomment-863245537
Additional context
https://github.com/guzzle/guzzle/blob/8.2/UPGRADING.md#70-to-80
https://github.com/guzzle/psr7/blob/3.1/UPGRADING.md#2x-to-30
Source: OpenAPITools/openapi-generator