Skip to content

1.0.0

Latest

Choose a tag to compare

@dbu dbu released this 29 Nov 13:13
1.0.0
da23fd5

First release supporting Guzzle 8.

Upgrading from guzzle7-adapter

  • Require php-http/guzzle8-adapter instead of php-http/guzzle7-adapter.
  • The namespace changed from Http\Adapter\Guzzle7 to Http\Adapter\Guzzle8.
    The two adapters cannot be installed at the same time, as each requires a different major version of Guzzle.
  • PHP 7.4 or newer and guzzlehttp/guzzle 8 are required. Read the
    Guzzle 8 upgrade guide
    for behaviour changes of Guzzle itself, e.g. stricter header and request method handling.
  • Exception conversion follows the new Guzzle 8 exception hierarchy:
    • Every GuzzleHttp\Exception\NetworkException (ConnectException, ConnectTimeoutException
      and the new NetworkTimeoutException) is converted to Http\Client\Exception\NetworkException.
    • Every GuzzleHttp\Exception\ResponseException (ClientException, ServerException,
      TooManyRedirectsException and the new ResponseTransferException / ResponseTimeoutException)
      is converted to Http\Client\Exception\HttpException containing the response.
    • Every other GuzzleHttp\Exception\TransferException (RequestException and the new HandlerClosedException)
      is converted to Http\Client\Exception\RequestException.