Repository navigation
Breaking changes
- Minimum PHP version raised to 8.2 (from 8.0).
- Guzzle is no longer a required dependency.
Clientnow depends on a PSR-18 HTTP client and PSR-17 factories instead ofguzzlehttp/guzzledirectly. If your project doesn't already have a PSR-18 implementation installed,php-http/discovery(https://github.com/php-http/discovery) will auto-install one (typically Guzzle) for you - no action needed in most cases. Big thanks to @ChloeSartorelli for contributing this change.- If you were passing a custom
GuzzleHttp\Clientinstance intoClient's constructor, this still works as long as it implementsPsr\Http\Client\ClientInterface(Guzzle 7+ does). Passing a Guzzle 6-style client or relying onGuzzleHttp\ClientInterfacetype hints will break. - Any code catching
GuzzleHttp\Exception\GuzzleExceptionaround calls to this library should now catchPsr\Http\Client\ClientExceptionInterfaceinstead.
- If you were passing a custom
- New required dependencies:
php-http/discovery,php-http/client-common,psr/http-client-implementation,psr/http-factory-implementation.
Full Changelog: v2.2.0...v3.0.0