PHPackages                             amphp/http-client-guzzle-adapter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. amphp/http-client-guzzle-adapter

ActiveLibrary[HTTP &amp; Networking](/categories/http)

amphp/http-client-guzzle-adapter
================================

Guzzle adapter for Amp's HTTP client.

v1.1.3(10mo ago)1523.6k↑155%2[1 issues](https://github.com/amphp/http-client-guzzle-adapter/issues)[1 PRs](https://github.com/amphp/http-client-guzzle-adapter/pulls)1MITPHPPHP &gt;=8.1CI failing

Since Sep 3Pushed 10mo ago3 watchersCompare

[ Source](https://github.com/amphp/http-client-guzzle-adapter)[ Packagist](https://packagist.org/packages/amphp/http-client-guzzle-adapter)[ Docs](https://github.com/amphp/http-client-guzzle-adapter)[ GitHub Sponsors](https://github.com/amphp)[ RSS](/packages/amphp-http-client-guzzle-adapter/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelog (5)Dependencies (18)Versions (6)Used By (1)

amphp/http-client-guzzle-adapter
================================

[](#amphphttp-client-guzzle-adapter)

AMPHP is a collection of event-driven libraries for PHP designed with fibers and concurrency in mind. This package provides an adapter for Guzzle 7 to allow using [`amphp/http-client`](https://github.com/amphp/http-client) as the underlying HTTP transport, providing interoperability between libraries requiring Guzzle and libraries or applications built with AMPHP.

[![Latest Release](https://camo.githubusercontent.com/62043c7b638e6ebb492ae49efed38b89392e3c77f84e65fa8ae262e7bc95e0e3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f616d7068702f687474702d636c69656e742d67757a7a6c652d616461707465722e7376673f7374796c653d666c61742d737175617265)](https://github.com/amphp/http-client-guzzle-adapter/releases)[![MIT License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/amphp/http-client-guzzle-adapter/blob/1.x/LICENSE)

Installation
------------

[](#installation)

This package can be installed as a [Composer](https://getcomposer.org/) dependency.

```
composer require amphp/http-client-guzzle-adapter
```

Requirements
------------

[](#requirements)

- PHP 8.1+

Usage
-----

[](#usage)

Set the Guzzle handler as shown below to use AMPHP's HTTP Client as the request handler for Guzzle HTTP requests. This allows libraries relying on a Guzzle HTTP client to be used within an async application built upon AMPHP.

```
