Laravel request content decompress middleware
softonic/laravel-request-content-decompress-middleware is a Laravel package for laravel request content decompress middleware.
It currently has 8 GitHub stars and 25.983 downloads on Packagist (latest version 2.0.0).
Install it with composer require softonic/laravel-request-content-decompress-middleware.
Discover more Laravel packages by softonic
or browse all Laravel packages to compare alternatives.
Last updated
This middleware adds the ability to automatically decompress the content of a compressed request
Via composer:
composer require softonic/laravel-request-content-decompress-middleware
To use the middleware simply register it in app/Http/Kernel.php
protected $middleware
= [
...
RequestContentDecompress::class,
...
];
From now on all requests having Content-Encoding: gzip will be automatically decompressed and processed as a uncompressed request.
softonic/laravel-request-content-decompress-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 test
The Apache 2.0 license. Please see LICENSE for more information.