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

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

vkoori/guzzle-wrapper
=====================

A flexible PHP-based API client built on Guzzle, supporting dynamic body formats, complex query parameters, retry logic with exponential backoff, and robust exception handling.

0.1.2(1y ago)0430PHP

Since Oct 24Pushed 1y ago1 watchersCompare

[ Source](https://github.com/vkoori/guzzle-wrapper)[ Packagist](https://packagist.org/packages/vkoori/guzzle-wrapper)[ RSS](/packages/vkoori-guzzle-wrapper/feed)WikiDiscussions master Synced 1mo ago

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

A flexible PHP-based API client built on Guzzle, supporting dynamic body formats, complex query parameters, retry logic with exponential backoff, and robust exception handling.

Install
-------

[](#install)

```
composer require vkoori/guzzle-wrapper

```

```
// Create a GuzzleClient instance
$client = new \Vkoori\GuzzleWrapper\GuzzleClient();

// Perform a POST request with extensive chaining
$response = $client
    ->setBaseUrl('https://api.example.com')               // Set the base URL
    ->endpoint('users')                                   // Set the endpoint (e.g., /users)
    ->headers([                                           // Set custom headers
        'X-Custom-Header' => 'CustomHeaderValue',
    ])
    ->accept('application/json')                          // Set the Accept header
    ->withToken('your-api-token-here')                    // Set Authorization header with Bearer token
    ->userAgent('MyCustomUserAgent/1.0')                  // Set a custom User-Agent header
    ->connectTimeout(2.0)                                 // Set connection timeout to 2 seconds
    ->timeout(5.0)                                        // Set overall request timeout to 5 seconds
    ->retry(3, 300000)                                    // Retry up to 3 times with increasing delay
    ->asJson()                                            // Use JSON format for the request body
    ->data([                                              // Add JSON data for the request body
        'name'     => 'John Doe',
        'email'    => 'john@example.com',
        'password' => 'secretpassword',
    ])
    ->post();                                             // Send a POST request

// Response
echo (string) $response->getBody();
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

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 ~2 days

Total

3

Last Release

556d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/87c1574170082a3c779cca97f90846e478dcc46114fc66480fbd04975b71a746?d=identicon)[vkoori](/maintainers/vkoori)

---

Tags

http clientGuzzle

### Embed Badge

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

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

###  Alternatives

[eightpoints/guzzle-bundle

Integrates Guzzle 6.x, a PHP HTTP Client, into Symfony. Comes with easy and powerful configuration options and optional plugins.

45912.1M55](/packages/eightpoints-guzzle-bundle)[graham-campbell/guzzle-factory

Provides A Simple Guzzle Factory With Good Defaults

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

A Laravel package providing an in-browser API client with automatic schema generation, live validation, and built-in authentication with a touch of Laravel-tailored magic for effortless API testing.

29428.0k](/packages/sunchayn-nimbus)[e-moe/guzzle6-bundle

Integrates Guzzle 6 into your Symfony application

11259.2k](/packages/e-moe-guzzle6-bundle)[amphp/http-client-guzzle-adapter

Guzzle adapter for Amp's HTTP client.

1523.6k1](/packages/amphp-http-client-guzzle-adapter)[opgg/riotquest

RiotQuest, PHP RiotAPI client library that focused on multi request from OP.GG

172.6k](/packages/opgg-riotquest)

PHPackages © 2026

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