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(); $stack->push($compressMiddleware); $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 testsTo run interactively using PsySH:
$ docker-compose run psyshThe Apache 2.0 license. Please see LICENSE for more information.