Skip to content

Replace Guzzle with PSR-18 HTTP client #3147

Description

@garak

Describe the feature

It would be nice not to force the developers using this library to use the Guzzle HTTP client.
The choice of the HTTP client should be left to the developer.
Of course, Guzzle can still be used and declared as a dev dependency, reducing the amount of work for the change (being Guzzle itself fully compatible with PSR-18)

Use Case

I'd like to use this library, but I already use a different HTTP client that is PSR-18 compatible. Currently, I'm forced to use two clients to achieve the same result.

Proposed Solution

Replace the injection of GuzzleHttp\ClientInterface with Psr\Http\Client\ClientInterface

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

SDK version used

3.349.3

Environment details (Version of PHP (php -v)? OS name and version, etc.)

8.4.5 (but it's not relevant here)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

feature-requestA feature should be added or improved.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions