easy-http / guzzle-adapter
HTTP adapter for Guzzle Client
Requires
- php: ^7.4|^8.0
- ext-json: *
- easy-http/contracts: ^2.0
- guzzlehttp/guzzle: ^6.0|^7.0
Requires (Dev)
- fakerphp/faker: ^1.19
- phpunit/phpunit: ^9.2
- squizlabs/php_codesniffer: ^3.5
README
π Standardized HTTP client interface
π Seamlessly switch between HTTP clients using the adapter pattern
Guzzle HTTP Adapter
This is an HTTP adapter for Guzzle Client that implements the HTTP client contracts. These contracts standardize the way you consume HTTP clients like Guzzle, Symfony, and others by providing a consistent interface. The adapter pattern ensures that regardless of which HTTP client you're using, the methods and behavior remain consistent across all implementations.
π Check out the Documentation to learn how to use any adapter that implements these contracts.
This adapter supports the following versions of Guzzle HTTP Client:
Installation
Use following command to install this library:
composer require easy-http/guzzle-adapter
Usage
This adapter implements the HTTP Client Contracts. You can check all available features and behavior for the current version at Easy Http Documentation.