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

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

duncan3dc/guzzle-tools
======================

A few tools for working with Guzzle

0.5.0(3y ago)1275Apache-2.0PHPPHP ^8.0

Since Feb 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/duncan3dc/guzzle-tools)[ Packagist](https://packagist.org/packages/duncan3dc/guzzle-tools)[ Docs](https://github.com/duncan3dc/guzzle-tools)[ RSS](/packages/duncan3dc-guzzle-tools/feed)WikiDiscussions main Synced 2mo ago

READMEChangelogDependencies (12)Versions (6)Used By (0)

guzzle-tools
============

[](#guzzle-tools)

A PHP library offering some add-ons for [Guzzle](http://guzzlephp.org/).

[![release](https://camo.githubusercontent.com/e20c822ac90446f8cf200d6a715a0386dfcf7090d0a48d0b915106b619ae3a35/68747470733a2f2f706f7365722e707567782e6f72672f64756e63616e3364632f67757a7a6c652d746f6f6c732f76657273696f6e2e737667)](https://packagist.org/packages/duncan3dc/guzzle-tools)[![build](https://github.com/duncan3dc/guzzle-tools/workflows/.github/workflows/buildcheck.yml/badge.svg?branch=main)](https://github.com/duncan3dc/guzzle-tools/actions/workflows/coverage.yml)[![coverage](https://camo.githubusercontent.com/77dff21fe7c6192182868b2b05fa5f7c52101fe02c9e282201c7a6829d92d481/68747470733a2f2f636f6465636f762e696f2f67682f64756e63616e3364632f67757a7a6c652d746f6f6c732f67726170682f62616467652e737667)](https://codecov.io/gh/duncan3dc/guzzle-tools)

Installation
------------

[](#installation)

The recommended method of installing this library is via [Composer](//getcomposer.org/).

Run the following command from your project root:

```
$ composer require duncan3dc/guzzle-tools
```

Quick Examples
--------------

[](#quick-examples)

### Logging

[](#logging)

When working with Guzzle I got bored of searching for the solution to output the request/response every time I wanted a quick debug, this library makes it easy:

```
$client = \duncan3dc\Guzzle\Factory::getClient();

$client->request("GET", "http://example.com/");
```

Running the above would output this on the command line:

```
>

```

### Request Building

[](#request-building)

As of version 6.0.0 Guzzle no longer offers a way to build a request instance to send later, this library provides a simple workaround:

```
$request = \duncan3dc\Guzzle\Request::make("GET", "https://example.com/", [
    "query" =>  [
        "date"  =>  date("Y-m-d"),
    ],
]);

# There's also an alias on the main factory class
$request = \duncan3dc\Guzzle\Factory::request("GET", "https://example.com/");
```

### Simple Requests

[](#simple-requests)

When all you need is a basic GET/POST, you can use the `Http` class:

```
$response = \duncan3dc\Guzzle\Http::get("https://example.com/", [
    "date"  =>  date("Y-m-d"),
]);

$response = \duncan3dc\Guzzle\Http::post("https://example.com/", [
    "date"  =>  date("Y-m-d"),
]);
```

Changelog
---------

[](#changelog)

A [Changelog](CHANGELOG.md) has been available since the beginning of time

Where to get help
-----------------

[](#where-to-get-help)

Found a bug? Got a question? Just not sure how something works?
Please [create an issue](//github.com/duncan3dc/guzzle-tools/issues) and I'll do my best to help out.
Alternatively you can catch me on [Twitter](https://twitter.com/duncan3dc)

duncan3dc/guzzle-tools for enterprise
-------------------------------------

[](#duncan3dcguzzle-tools-for-enterprise)

Available as part of the Tidelift Subscription

The maintainers of duncan3dc/guzzle-tools 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-duncan3dc-guzzle-tools?utm_source=packagist-duncan3dc-guzzle-tools&utm_medium=referral&utm_campaign=readme)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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

Total

5

Last Release

1127d ago

PHP version history (3 changes)0.1.0PHP ^5.6|^7.0

0.4.0PHP ^7.3 || ^8.0

0.5.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/11dc66042513f11d1c99b1e6763f25dca84a3ff31cdbea3972b9b804a3d3d5e9?d=identicon)[duncan3dc](/maintainers/duncan3dc)

---

Top Contributors

[![duncan3dc](https://avatars.githubusercontent.com/u/546811?v=4)](https://github.com/duncan3dc "duncan3dc (47 commits)")

---

Tags

guzzlephplogdebugGuzzleoutput

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[shopify/shopify-api

Shopify API Library for PHP

4634.8M16](/packages/shopify-shopify-api)[gmponos/guzzle_logger

A Guzzle middleware to log request and responses automatically

772.2M6](/packages/gmponos-guzzle-logger)[graham-campbell/guzzle-factory

Provides A Simple Guzzle Factory With Good Defaults

916.4M49](/packages/graham-campbell-guzzle-factory)[rtheunissen/guzzle-log-middleware

Guzzle middleware to log requests and responses

842.3M17](/packages/rtheunissen-guzzle-log-middleware)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[huaweicloud/huaweicloud-sdk-php

Huawei Cloud SDK for PHP

1829.2k2](/packages/huaweicloud-huaweicloud-sdk-php)

PHPackages © 2026

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