Skip to content

v3.0.0

Latest

Choose a tag to compare

@robbieaverill robbieaverill released this 02 Sep 02:56
8a306b4

Breaking changes

  • Minimum PHP version raised to 8.2 (from 8.0).
  • Guzzle is no longer a required dependency. Client now depends on a PSR-18 HTTP client and PSR-17 factories instead of guzzlehttp/guzzle directly. 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\Client instance into Client's constructor, this still works as long as it implements Psr\Http\Client\ClientInterface (Guzzle 7+ does). Passing a Guzzle 6-style client or relying on GuzzleHttp\ClientInterface type hints will break.
    • Any code catching GuzzleHttp\Exception\GuzzleException around calls to this library should now catch Psr\Http\Client\ClientExceptionInterface instead.
  • 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