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

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

programster/guzzle-wrapper
==========================

A library to make it easier to use Guzzle for sending HTTP requests.

1.1.0(5y ago)091MITPHPPHP &gt;=7.0.0

Since Sep 8Pushed 2y ago1 watchersCompare

[ Source](https://github.com/programster/package-guzzle-wrapper)[ Packagist](https://packagist.org/packages/programster/guzzle-wrapper)[ Docs](http://blog.programster.org)[ RSS](/packages/programster-guzzle-wrapper/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (7)Used By (0)

Guzzle Wrapper
==============

[](#guzzle-wrapper)

A library that wraps around Guzzle in order to make it easier to send HTTP requests. If you need to do anything more complicated, then you can just get the guzzle objects within.

Example Usage
-------------

[](#example-usage)

```
$request = new Programster\GuzzleWrapper\Request(
    Programster\GuzzleWrapper\Method::createGet(),
    'http://my.domain.com',
    ['hello' => 'world']
);

// send the request to get a response
$response = $request->send();

// If we were sending to an API, then we want to json_decode the response
$jsonResponseObject = json_decode($response->getBody());
```

Switching to a POST/PUT/DELETE is a one line change. E.g.

```
$request = new Programster\GuzzleWrapper\Request(
    Programster\GuzzleWrapper\Method::createPost(),
    'http://my.domain.com',
    ['hello' => 'world']
);
```

Testing
-------

[](#testing)

Go to the tests folder and run:

```
php -S localhost:80 RequestDumper.php
```

Then execute the tests with:

```
php main.php
```

This should simply tell you whether each test passed or not.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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

Every ~210 days

Total

5

Last Release

1964d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/64a048ca8be761aced9419279975a21ef679b71c70d8263bc2fc413a87ad381c?d=identicon)[programster](/maintainers/programster)

---

Top Contributors

[![programster](https://avatars.githubusercontent.com/u/5709838?v=4)](https://github.com/programster "programster (6 commits)")

---

Tags

Guzzlelibrary

### Embed Badge

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

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

###  Alternatives

[kevinrob/guzzle-cache-middleware

A HTTP/1.1 Cache for Guzzle 6. It's a simple Middleware to be added in the HandlerStack. (RFC 7234)

43117.4M104](/packages/kevinrob-guzzle-cache-middleware)[caseyamcl/guzzle_retry_middleware

Guzzle v6+ retry middleware that handles 429/503 status codes and connection timeouts

21610.7M64](/packages/caseyamcl-guzzle-retry-middleware)[php-http/guzzle7-adapter

Guzzle 7 HTTP Adapter

9057.1M555](/packages/php-http-guzzle7-adapter)[graham-campbell/guzzle-factory

Provides A Simple Guzzle Factory With Good Defaults

916.4M49](/packages/graham-campbell-guzzle-factory)

PHPackages © 2026

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