PHPackages                             guzzlehttp/guzzle - 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. [Framework](/categories/framework)
4. /
5. guzzlehttp/guzzle

ActiveLibrary[Framework](/categories/framework)

guzzlehttp/guzzle
=================

Guzzle is a PHP HTTP client library

7.10.0(8mo ago)23.4k991.0M—8.4%2.4k[22 issues](https://github.com/guzzle/guzzle/issues)[16 PRs](https://github.com/guzzle/guzzle/pulls)20MITPHPPHP ^7.2.5 || ^8.0CI passing

Since Nov 14Pushed today438 watchersCompare

[ Source](https://github.com/guzzle/guzzle)[ Packagist](https://packagist.org/packages/guzzlehttp/guzzle)[ GitHub Sponsors](https://github.com/GrahamCampbell)[ GitHub Sponsors](https://github.com/Nyholm)[ RSS](/packages/guzzlehttp-guzzle/feed)WikiDiscussions 7.10 Synced 1mo ago

READMEChangelog (10)Dependencies (9)Versions (167)Used By (20)Security (6)

[![Guzzle](.github/logo.png?raw=true)](.github/logo.png?raw=true)

Guzzle, PHP HTTP client
=======================

[](#guzzle-php-http-client)

[![Latest Version](https://camo.githubusercontent.com/908e2c0c2b46d0b18d0aaeea5850529b5ee579ee9f9614972bf38eb7f98078e1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f67757a7a6c652f67757a7a6c652e7376673f7374796c653d666c61742d737175617265)](https://github.com/guzzle/guzzle/releases)[![Build Status](https://camo.githubusercontent.com/24c0747dbd40b1f6bce1afc1324d1f8165b43b600bb1bdde7c705a9ea3aaf299/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f67757a7a6c652f67757a7a6c652f63692e796d6c3f6c6162656c3d63692532306275696c64267374796c653d666c61742d737175617265)](https://github.com/guzzle/guzzle/actions?query=workflow%3ACI)[![Total Downloads](https://camo.githubusercontent.com/3a2f550b47182f922ea7957b707e5e886f54b444ac85347722c0c16daa9c0b34/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f67757a7a6c65687474702f67757a7a6c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/guzzlehttp/guzzle)

Guzzle is a PHP HTTP client that makes it easy to send HTTP requests and trivial to integrate with web services.

- Simple interface for building query strings, POST requests, streaming large uploads, streaming large downloads, using HTTP cookies, uploading JSON data, etc...
- Can send both synchronous and asynchronous requests using the same interface.
- Uses PSR-7 interfaces for requests, responses, and streams. This allows you to utilize other PSR-7 compatible libraries with Guzzle.
- Supports PSR-18 allowing interoperability between other PSR-18 HTTP Clients.
- Abstracts away the underlying HTTP transport, allowing you to write environment and transport agnostic code; i.e., no hard dependency on cURL, PHP streams, sockets, or non-blocking event loops.
- Middleware system allows you to augment and compose client behavior.

```
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://api.github.com/repos/guzzle/guzzle');

echo $response->getStatusCode(); // 200
echo $response->getHeaderLine('content-type'); // 'application/json; charset=utf8'
echo $response->getBody(); // '{"id": 1420053, "name": "guzzle", ...}'

// Send an asynchronous request.
$request = new \GuzzleHttp\Psr7\Request('GET', 'http://httpbin.org');
$promise = $client->sendAsync($request)->then(function ($response) {
    echo 'I completed! ' . $response->getBody();
});

$promise->wait();
```

Help and docs
-------------

[](#help-and-docs)

We use GitHub issues only to discuss bugs and new features. For support please refer to:

- [Documentation](https://docs.guzzlephp.org)
- [Stack Overflow](https://stackoverflow.com/questions/tagged/guzzle)
- [\#guzzle](https://app.slack.com/client/T0D2S9JCT/CE6UAAKL4) channel on [PHP-HTTP Slack](https://slack.httplug.io/)
- [Gitter](https://gitter.im/guzzle/guzzle)

Installing Guzzle
-----------------

[](#installing-guzzle)

The recommended way to install Guzzle is through [Composer](https://getcomposer.org/).

```
composer require guzzlehttp/guzzle
```

Version Guidance
----------------

[](#version-guidance)

VersionStatusPackagistNamespaceRepoDocsPSR-7PHP Version3.xEOL (2016-10-31)`guzzle/guzzle``Guzzle`[v3](https://github.com/guzzle/guzzle3)[v3](https://guzzle3.readthedocs.io/)No&gt;=5.3.3,&lt;7.04.xEOL (2016-10-31)`guzzlehttp/guzzle``GuzzleHttp`[v4](https://github.com/guzzle/guzzle/tree/4.x)N/ANo&gt;=5.4,&lt;7.05.xEOL (2019-10-31)`guzzlehttp/guzzle``GuzzleHttp`[v5](https://github.com/guzzle/guzzle/tree/5.3)[v5](https://docs.guzzlephp.org/en/5.3/)No&gt;=5.4,&lt;7.46.xEOL (2023-10-31)`guzzlehttp/guzzle``GuzzleHttp`[v6](https://github.com/guzzle/guzzle/tree/6.5)[v6](https://docs.guzzlephp.org/en/6.5/)Yes&gt;=5.5,&lt;8.07.xLatest`guzzlehttp/guzzle``GuzzleHttp`[v7](https://github.com/guzzle/guzzle)[v7](https://docs.guzzlephp.org/en/latest/)Yes&gt;=7.2.5,&lt;8.6Security
--------

[](#security)

If you discover a security vulnerability within this package, please send an email to . All security vulnerabilities will be promptly addressed. Please do not disclose security-related issues publicly until a fix has been announced. Please see [Security Policy](https://github.com/guzzle/guzzle/security/policy) for more information.

License
-------

[](#license)

Guzzle is made available under the MIT License (MIT). Please see [License File](LICENSE) for more information.

For Enterprise
--------------

[](#for-enterprise)

Available as part of the Tidelift Subscription

The maintainers of Guzzle and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/packagist-guzzlehttp-guzzle?utm_source=packagist-guzzlehttp-guzzle&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)

###  Health Score

86

—

ExcellentBetter than 100% of packages

Maintenance82

Actively maintained with recent releases

Popularity94

Widely adopted with strong download metrics

Community76

Healthy contributor diversity

Maturity87

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 77.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~32 days

Recently: every ~147 days

Total

163

Last Release

74d ago

Major Versions

6.5.5 → 7.0.02020-06-27

6.5.6 → 7.4.32022-05-25

6.5.7 → 7.4.42022-06-09

6.5.8 → 7.4.52022-06-20

7.8.1 → 8.0.x-dev2024-03-31

PHP version history (8 changes)v1.0.3PHP &gt;=5.3.2

v3.7.4PHP &gt;=5.3.3

4.0.0-rc.1PHP &gt;=5.4.0

6.0.0PHP &gt;=5.5.0

6.2.1PHP &gt;=5.5

7.0.0-beta.1PHP ^7.2.5

7.2.0PHP ^7.2.5 || ^8.0

8.0.x-devPHP ^7.4 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/190930?v=4)[Michael Dowling](/maintainers/mtdowling)[@mtdowling](https://github.com/mtdowling)

![](https://www.gravatar.com/avatar/184fbc398ff1b83855ab8289cd8ce20225d0158c66284b458d2d811546606938?d=identicon)[jeremeamia](/maintainers/jeremeamia)

![](https://www.gravatar.com/avatar/401ccc5eea13c60cf807ae982af00e368e2166e2f26d8eb541dcd881a57385bc?d=identicon)[Nyholm](/maintainers/Nyholm)

![](https://www.gravatar.com/avatar/0e4e105cea62b616d4cb376b08a849b6a428f646998537de150d16a8eb537b90?d=identicon)[mark.sagikazar](/maintainers/mark.sagikazar)

![](https://www.gravatar.com/avatar/d95eb26cb8f3919bb5ca3b6d823daeabbf259663778a970349b245c580713c8e?d=identicon)[graham-campbell](/maintainers/graham-campbell)

---

Top Contributors

[![mtdowling](https://avatars.githubusercontent.com/u/190930?v=4)](https://github.com/mtdowling "mtdowling (2412 commits)")[![sagikazarmark](https://avatars.githubusercontent.com/u/1226384?v=4)](https://github.com/sagikazarmark "sagikazarmark (174 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (164 commits)")[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (94 commits)")[![gmponos](https://avatars.githubusercontent.com/u/5675248?v=4)](https://github.com/gmponos "gmponos (68 commits)")[![jeremeamia](https://avatars.githubusercontent.com/u/107867?v=4)](https://github.com/jeremeamia "jeremeamia (26 commits)")[![TimWolla](https://avatars.githubusercontent.com/u/209270?v=4)](https://github.com/TimWolla "TimWolla (17 commits)")[![hobodave](https://avatars.githubusercontent.com/u/12404?v=4)](https://github.com/hobodave "hobodave (13 commits)")[![Tobion](https://avatars.githubusercontent.com/u/610090?v=4)](https://github.com/Tobion "Tobion (12 commits)")[![gimler](https://avatars.githubusercontent.com/u/200904?v=4)](https://github.com/gimler "gimler (11 commits)")[![cordoval](https://avatars.githubusercontent.com/u/328359?v=4)](https://github.com/cordoval "cordoval (11 commits)")[![Danack](https://avatars.githubusercontent.com/u/1505719?v=4)](https://github.com/Danack "Danack (10 commits)")[![jeskew](https://avatars.githubusercontent.com/u/705500?v=4)](https://github.com/jeskew "jeskew (9 commits)")[![hussainweb](https://avatars.githubusercontent.com/u/1040271?v=4)](https://github.com/hussainweb "hussainweb (9 commits)")[![alexeyshockov](https://avatars.githubusercontent.com/u/203120?v=4)](https://github.com/alexeyshockov "alexeyshockov (8 commits)")[![pelepelin](https://avatars.githubusercontent.com/u/397256?v=4)](https://github.com/pelepelin "pelepelin (7 commits)")[![thewilkybarkid](https://avatars.githubusercontent.com/u/1784740?v=4)](https://github.com/thewilkybarkid "thewilkybarkid (7 commits)")[![adrienbrault](https://avatars.githubusercontent.com/u/611271?v=4)](https://github.com/adrienbrault "adrienbrault (6 commits)")[![carusogabriel](https://avatars.githubusercontent.com/u/16328050?v=4)](https://github.com/carusogabriel "carusogabriel (6 commits)")[![fubhy](https://avatars.githubusercontent.com/u/1172528?v=4)](https://github.com/fubhy "fubhy (6 commits)")

---

Tags

curlguzzlehttp-clienthttpclientphppsr-7requestswebserviceshttppsr-7clientframeworkrestcurlhttp clientweb servicepsr-18

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/guzzlehttp-guzzle/health.svg)

```
[![Health](https://phpackages.com/badges/guzzlehttp-guzzle/health.svg)](https://phpackages.com/packages/guzzlehttp-guzzle)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
