Guzzle request content compress middleware

1.0.1 2019-07-09 09:43 UTC

This package is auto-updated.

Last update: 2022-09-10 19:16:54 UTC


Latest Version Software License Build Status Coverage Status Quality Score Total Downloads Average time to resolve an issue Percentage of issues still open

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


Via composer:

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


To use the Middleware push it to the handler:

$stack = HandlerStack::create();
$compressMiddleware = new CompressContentRequest();

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


softonic/guzzle-request-content-compress-middleware has a PHPUnit test suite and a coding style compliance test suite using PHP CS Fixer.

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

$ docker-compose run tests

To run interactively using PsySH:

$ docker-compose run psysh


The Apache 2.0 license. Please see LICENSE for more information.