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

ActiveLibrary[Framework](/categories/framework)

luongtran/guzzle
================

Guzzle is a PHP HTTP client library

6.0(1y ago)08MITPHPPHP &gt;=5.5.0

Since Aug 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/luongtran/guzzle)[ Packagist](https://packagist.org/packages/luongtran/guzzle)[ Docs](http://guzzlephp.org/)[ RSS](/packages/luongtran-guzzle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

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

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

[![Build Status](https://camo.githubusercontent.com/e1788b553338af7a464581e4b98e1144822a641b3052e33350b7d686e7b84b38/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f67757a7a6c652f67757a7a6c652e7376673f6272616e63683d6d6173746572)](http://travis-ci.org/guzzle/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->get('https://api.github.com/user', ['auth' =>  ['user', 'pass']]);
echo $res->getStatusCode();
// "200"
echo $res->getHeader('content-type');
// 'application/json; charset=utf8'
echo $res->getBody();
// {"type":"User"...'

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

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

[](#help-and-docs)

- [Documentation](http://guzzlephp.org/)
- [stackoverflow](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:

```
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)

- Guzzle 3.x (`guzzle/guzzle`) is now EOL and will no longer be maintained. Requires PHP 5.3+.
- Guzzle 4.x (`guzzlehttp/guzzle`) is now EOL and will no longer be maintained. Requires PHP 5.4+.
- Guzzle 5.x (`guzzlehttp/guzzle`) is still maintained under the `5.3` branch. Requires PHP 5.4+.
- Guzzle 6.x (`guzzlehttp/guzzle`) is the latest stable version of Guzzle. This is the only version that is PSR-7 compatible. Requires PHP 5.5+.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

631d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fbf5527edb7883829d0e0ef1fe9f5760e344bc87d490297b62ada5c1fdda667d?d=identicon)[luongtran](/maintainers/luongtran)

---

Top Contributors

[![luongtran](https://avatars.githubusercontent.com/u/1092657?v=4)](https://github.com/luongtran "luongtran (1 commits)")

---

Tags

httpclientframeworkrestcurlhttp clientweb service

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[guzzlehttp/guzzle

Guzzle is a PHP HTTP client library

23.4k991.0M31.1k](/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)
