Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/softonic/guzzle-request-content-compress-middleware
This middleware adds the ability to automatically compress the content of a request
https://github.com/softonic/guzzle-request-content-compress-middleware
compress content-encoding guzzle gzip php request
Last synced: about 23 hours ago
JSON representation
This middleware adds the ability to automatically compress the content of a request
- Host: GitHub
- URL: https://github.com/softonic/guzzle-request-content-compress-middleware
- Owner: softonic
- License: other
- Created: 2019-07-08T09:15:57.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-10T13:33:23.000Z (about 5 years ago)
- Last Synced: 2024-11-14T20:49:04.745Z (about 1 month ago)
- Topics: compress, content-encoding, guzzle, gzip, php, request
- Language: PHP
- Homepage:
- Size: 7.81 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
Guzzle request content compress middleware
=====[![Latest Version](https://img.shields.io/github/release/softonic/guzzle-request-content-compress-middleware.svg?style=flat-square)](https://github.com/softonic/guzzle-request-content-compress-middleware/releases)
[![Software License](https://img.shields.io/badge/license-Apache%202.0-blue.svg?style=flat-square)](LICENSE.md)
[![Build Status](https://img.shields.io/travis/softonic/guzzle-request-content-compress-middleware/master.svg?style=flat-square)](https://travis-ci.org/softonic/guzzle-request-content-compress-middleware)
[![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/softonic/guzzle-request-content-compress-middleware.svg?style=flat-square)](https://scrutinizer-ci.com/g/softonic/guzzle-request-content-compress-middleware/code-structure)
[![Quality Score](https://img.shields.io/scrutinizer/g/softonic/guzzle-request-content-compress-middleware.svg?style=flat-square)](https://scrutinizer-ci.com/g/softonic/guzzle-request-content-compress-middleware)
[![Total Downloads](https://img.shields.io/packagist/dt/softonic/guzzle-request-content-compress-middleware.svg?style=flat-square)](https://packagist.org/packages/softonic/guzzle-request-content-compress-middleware)
[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/softonic/guzzle-request-content-compress-middleware.svg?style=flat-square)](http://isitmaintained.com/project/softonic/guzzle-request-content-compress-middleware "Average time to resolve an issue")
[![Percentage of issues still open](http://isitmaintained.com/badge/open/softonic/guzzle-request-content-compress-middleware.svg?style=flat-square)](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
-------Via composer:
```
composer require softonic/guzzle-request-content-compress-middleware
```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
-------`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.
``` bash
$ docker-compose run tests
```To run interactively using [PsySH](http://psysh.org/):
``` bash
$ docker-compose run psysh
```License
-------The Apache 2.0 license. Please see [LICENSE](LICENSE) for more information.
[PSR-2]: http://www.php-fig.org/psr/psr-2/
[PSR-4]: http://www.php-fig.org/psr/psr-4/