PHPackages                             guzzlehttpv4/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. guzzlehttpv4/guzzle

ActiveLibrary[Framework](/categories/framework)

guzzlehttpv4/guzzle
===================

Guzzle is a PHP HTTP client library

v2.0.1(4y ago)0589MITPHPPHP &gt;=5.5

Since Aug 26Pushed 4y ago1 watchersCompare

[ Source](https://github.com/trungnt309193/guzzle)[ Packagist](https://packagist.org/packages/guzzlehttpv4/guzzle)[ Docs](http://guzzlephp.org/)[ RSS](/packages/guzzlehttpv4-guzzle/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (4)Versions (10)Used By (0)

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/65df634310bd57ad4a4f40673cea13cc633efd6c072ad977aa9840d6f772f0f3/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f67757a7a6c652f67757a7a6c652e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/guzzle/guzzle)[![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.
- 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();
$res = $client->request('GET', 'https://api.github.com/repos/guzzle/guzzle');
echo $res->getStatusCode();
// 200
echo $res->getHeaderLine('content-type');
// 'application/json; charset=utf8'
echo $res->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)

- [Documentation](http://guzzlephp.org/)
- [Stack Overflow](http://stackoverflow.com/questions/tagged/guzzle)
- [Gitter](https://gitter.im/guzzle/guzzle)

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

[](#installing-guzzle)

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

```
# Install Composer
curl -sS https://getcomposer.org/installer | php
```

Next, run the Composer command to install the latest stable version of Guzzle:

```
php composer.phar require guzzlehttp/guzzle
```

After installing, you need to require Composer's autoloader:

```
require 'vendor/autoload.php';
```

You can then later update Guzzle using composer:

```
composer.phar update
```

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

[](#version-guidance)

VersionStatusPackagistNamespaceRepoDocsPSR-7PHP Version3.xEOL`guzzle/guzzle``Guzzle`[v3](https://github.com/guzzle/guzzle3)[v3](http://guzzle3.readthedocs.org/en/latest/)No&gt;= 5.3.34.xEOL`guzzlehttp/guzzle``GuzzleHttp`[v4](https://github.com/guzzle/guzzle/tree/4.x)N/ANo&gt;= 5.45.xMaintained`guzzlehttp/guzzle``GuzzleHttp`[v5](https://github.com/guzzle/guzzle/tree/5.3)[v5](http://guzzle.readthedocs.org/en/5.3/)No&gt;= 5.46.xLatest`guzzlehttp/guzzle``GuzzleHttp`[v6](https://github.com/guzzle/guzzle)[v6](http://guzzle.readthedocs.org/en/latest/)Yes&gt;= 5.5

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90% 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 ~0 days

Total

9

Last Release

1716d ago

Major Versions

v1.0.8 → v2.0.02021-08-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/b889734339e90e574e5adfa388a28f14add4f593b04a28220601c1fc26c53220?d=identicon)[trungnt309193@gmail.com](/maintainers/trungnt309193@gmail.com)

---

Top Contributors

[![trungntstepup](https://avatars.githubusercontent.com/u/83626328?v=4)](https://github.com/trungntstepup "trungntstepup (9 commits)")[![trungnt309193](https://avatars.githubusercontent.com/u/85536684?v=4)](https://github.com/trungnt309193 "trungnt309193 (1 commits)")

---

Tags

httpclientframeworkrestcurlhttp clientweb service

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[guzzlehttp/guzzle

Guzzle is a PHP HTTP client library

23.4k991.0M31.0k](/packages/guzzlehttp-guzzle)[gregurco/guzzle-bundle-cache-plugin

Cache Plugin for Guzzle Bundle, a PHP HTTP client library and framework for building RESTful web service clients

11372.1k1](/packages/gregurco-guzzle-bundle-cache-plugin)

PHPackages © 2026

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