PHPackages                             softonic/guzzle-request-content-compress-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. softonic/guzzle-request-content-compress-middleware

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

softonic/guzzle-request-content-compress-middleware
===================================================

Guzzle request content compress middleware

1.0.1(6y ago)333Apache-2.0PHPPHP &gt;=7.1CI failing

Since Jul 8Pushed 6y ago1 watchersCompare

[ Source](https://github.com/softonic/guzzle-request-content-compress-middleware)[ Packagist](https://packagist.org/packages/softonic/guzzle-request-content-compress-middleware)[ Docs](https://github.com/softonic/guzzle-request-content-compress-middleware)[ RSS](/packages/softonic-guzzle-request-content-compress-middleware/feed)WikiDiscussions master Synced 2mo ago

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

Guzzle request content compress middleware
==========================================

[](#guzzle-request-content-compress-middleware)

[![Latest Version](https://camo.githubusercontent.com/9dc6b410189d1c9c203b5fa145a338892b16110534123dd31a1cc3881b95bfac/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f736f66746f6e69632f67757a7a6c652d726571756573742d636f6e74656e742d636f6d70726573732d6d6964646c65776172652e7376673f7374796c653d666c61742d737175617265)](https://github.com/softonic/guzzle-request-content-compress-middleware/releases)[![Software License](https://camo.githubusercontent.com/36cfc741510e076bec951c1421a2b1c3a5553e953fcdb378339626a5f33c1e8d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d417061636865253230322e302d626c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/5b8c63e0cffa207f2f9aaf2bd842b638cf2ed0513d7e91a405f89e7dd9931783/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f736f66746f6e69632f67757a7a6c652d726571756573742d636f6e74656e742d636f6d70726573732d6d6964646c65776172652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/softonic/guzzle-request-content-compress-middleware)[![Coverage Status](https://camo.githubusercontent.com/a20ebc604c6f3be06d435e5340d253f89aead64a926d45a3ab38b389a546d043/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f736f66746f6e69632f67757a7a6c652d726571756573742d636f6e74656e742d636f6d70726573732d6d6964646c65776172652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/softonic/guzzle-request-content-compress-middleware/code-structure)[![Quality Score](https://camo.githubusercontent.com/bc67f7ff03fce94f30300c6b88815bfc314f339de746f50784dbd51a44650bdf/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f736f66746f6e69632f67757a7a6c652d726571756573742d636f6e74656e742d636f6d70726573732d6d6964646c65776172652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/softonic/guzzle-request-content-compress-middleware)[![Total Downloads](https://camo.githubusercontent.com/19b677ec780a82aa6d254004a741fce69d3939a9725368e14cef324f2fc75c8b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736f66746f6e69632f67757a7a6c652d726571756573742d636f6e74656e742d636f6d70726573732d6d6964646c65776172652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/softonic/guzzle-request-content-compress-middleware)[![Average time to resolve an issue](https://camo.githubusercontent.com/4609ed9b4c9d5f6c47b2b330b04729db654d218344f3ebce548588f981fc1a8b/687474703a2f2f697369746d61696e7461696e65642e636f6d2f62616467652f7265736f6c7574696f6e2f736f66746f6e69632f67757a7a6c652d726571756573742d636f6e74656e742d636f6d70726573732d6d6964646c65776172652e7376673f7374796c653d666c61742d737175617265)](http://isitmaintained.com/project/softonic/guzzle-request-content-compress-middleware "Average time to resolve an issue")[![Percentage of issues still open](https://camo.githubusercontent.com/ede6110dc56e8ed8c141cee0dff23a89d5b7b1c1a82039134ea6d11598d05366/687474703a2f2f697369746d61696e7461696e65642e636f6d2f62616467652f6f70656e2f736f66746f6e69632f67757a7a6c652d726571756573742d636f6e74656e742d636f6d70726573732d6d6964646c65776172652e7376673f7374796c653d666c61742d737175617265)](http://isitmaintained.com/project/softonic/guzzle-request-content-compress-middleware "Percentage of issues still open")

This middleware adds the ability to automatically compress the content of a request

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

[](#installation)

Via composer:

```
composer require softonic/guzzle-request-content-compress-middleware

```

Documentation
-------------

[](#documentation)

To use the Middleware push it to the handler:

```
$stack = HandlerStack::create();
$compressMiddleware = new CompressContentRequest();
$stack->push($compressMiddleware);

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

```

Testing
-------

[](#testing)

`softonic/guzzle-request-content-compress-middleware` has a [PHPUnit](https://phpunit.de) test suite and a coding style compliance test suite using [PHP CS Fixer](http://cs.sensiolabs.org/).

To run the tests, run the following command from the project folder.

```
$ docker-compose run tests
```

To run interactively using [PsySH](http://psysh.org/):

```
$ docker-compose run psysh
```

License
-------

[](#license)

The Apache 2.0 license. Please see [LICENSE](LICENSE) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Every ~1 days

Total

2

Last Release

2497d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

compresscontent-encodingguzzlegzipphprequestrequestmiddlewareGuzzlegzip

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/softonic-guzzle-request-content-compress-middleware/health.svg)

```
[![Health](https://phpackages.com/badges/softonic-guzzle-request-content-compress-middleware/health.svg)](https://phpackages.com/packages/softonic-guzzle-request-content-compress-middleware)
```

###  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)[rtheunissen/guzzle-log-middleware

Guzzle middleware to log requests and responses

842.3M17](/packages/rtheunissen-guzzle-log-middleware)[eljam/guzzle-jwt-middleware

A jwt authentication middleware for guzzle 6

28722.5k3](/packages/eljam-guzzle-jwt-middleware)[rtheunissen/guzzle-rate-limiter

Guzzle 6 middleware used to delay requests dynamically

52177.2k1](/packages/rtheunissen-guzzle-rate-limiter)[brightfish/caching-guzzle

Cache HTTP responses through Guzzle middleware

1031.5k](/packages/brightfish-caching-guzzle)

PHPackages © 2026

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