PHPackages                             iammordaty/guzzle-urlencoded-response-middleware - 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. iammordaty/guzzle-urlencoded-response-middleware

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

iammordaty/guzzle-urlencoded-response-middleware
================================================

Simple Guzzle 6.x URL-encoded response middleware

0.1(6y ago)1191MITPHPPHP &gt;=7.1

Since Oct 24Pushed 6y ago1 watchersCompare

[ Source](https://github.com/iammordaty/guzzle-urlencoded-response-middleware)[ Packagist](https://packagist.org/packages/iammordaty/guzzle-urlencoded-response-middleware)[ RSS](/packages/iammordaty-guzzle-urlencoded-response-middleware/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (2)Used By (1)

iammordaty/guzzle-urlencoded-response-middleware
================================================

[](#iammordatyguzzle-urlencoded-response-middleware)

Simple Guzzle 6.x URL-encoded response middleware.

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

[](#installation)

```
$ composer require iammordaty/guzzle-urlencoded-response-middleware
```

Requirements
------------

[](#requirements)

- PHP 7.1

Sample usage
------------

[](#sample-usage)

```
use GuzzleHttp\Client;
use GuzzleHttp\Handler\MockHandler;
use GuzzleHttp\HandlerStack;
use GuzzleHttp\Psr7\Response;
use GuzzleUrlEncodedResponseMiddleware\UrlEncodedResponseMiddleware;
use function GuzzleHttp\Psr7\stream_for;

$body = 'id=78349&name=John%20Smith&username=%40smith&email=hello%40smith.com&phone=%2B1-202-555-0192&website=smith.dev';

// IRL: fetch data from server
$mock = new MockHandler([
    (new Response())->withBody(stream_for($body))
]);

$stack = HandlerStack::create($mock);
$stack->push(new UrlEncodedResponseMiddleware(), UrlEncodedResponseMiddleware::NAME);

$client = new Client([ 'handler' => $stack ]);

$response = $client->get('/');
$contents = $response->getBody()->getUrlDecodedParsedContents();

print_r($contents);

/*
Outputs:

Array
(
    [id] => 78349
    [name] => John Smith
    [username] => @smith
    [email] => hello@smith.com
    [phone] => +1-202-555-0192
    [website] => smith.dev
)
*/

$response->getBody()->rewind();

echo $response->getBody()->getUrlDecodedContents();

// Outputs: id=78349&name=John Smith&username=@smith&email=hello@smith.com&phone=+1-202-555-0192&website=smith.dev
```

License
-------

[](#license)

iammordaty/guzzle-urlencoded-response-middleware is licensed under the MIT License.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 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

2392d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13261799?v=4)[iammordaty](/maintainers/iammordaty)[@iammordaty](https://github.com/iammordaty)

---

Top Contributors

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

---

Tags

guzzleguzzle-middlewarepsr-7url-encodedresponsepsr-7streammiddlewareGuzzleurl-encoded

### Embed Badge

![Health badge](/badges/iammordaty-guzzle-urlencoded-response-middleware/health.svg)

```
[![Health](https://phpackages.com/badges/iammordaty-guzzle-urlencoded-response-middleware/health.svg)](https://phpackages.com/packages/iammordaty-guzzle-urlencoded-response-middleware)
```

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

8.0k1.0B3.2k](/packages/guzzlehttp-psr7)[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)[psr/http-server-middleware

Common interface for HTTP server-side middleware

18091.2M1.5k](/packages/psr-http-server-middleware)[rtheunissen/guzzle-rate-limiter

Guzzle 6 middleware used to delay requests dynamically

52177.2k1](/packages/rtheunissen-guzzle-rate-limiter)[middlewares/response-time

Middleware to save the response time into the X-Response-Time header

14278.7k4](/packages/middlewares-response-time)[pdeans/http

PSR-7 cURL HTTP client with support for PSR-17 HTTP factories.

1466.2k3](/packages/pdeans-http)

PHPackages © 2026

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