Repository navigation
First release supporting Guzzle 8.
Upgrading from guzzle7-adapter
- Require
php-http/guzzle8-adapterinstead ofphp-http/guzzle7-adapter. - The namespace changed from
Http\Adapter\Guzzle7toHttp\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/guzzle8 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 newNetworkTimeoutException) is converted toHttp\Client\Exception\NetworkException. - Every
GuzzleHttp\Exception\ResponseException(ClientException,ServerException,
TooManyRedirectsExceptionand the newResponseTransferException/ResponseTimeoutException)
is converted toHttp\Client\Exception\HttpExceptioncontaining the response. - Every other
GuzzleHttp\Exception\TransferException(RequestExceptionand the newHandlerClosedException)
is converted toHttp\Client\Exception\RequestException.
- Every