New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

softonic/laravel-request-content-decompress-middleware

Laravel request content decompress middleware
25,983 8
Install
composer require softonic/laravel-request-content-decompress-middleware
Latest Version:2.0.0
PHP:>=7.3
Laravel:7 · 8
Older releases:5 · 6
License:Apache-2.0
Last Updated:Nov 5, 2020
Links: GitHub  ·  Packagist
Maintainer: Joskfg

Laravel request content decompress middleware

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 decompress the content of a compressed request

Installation

Via composer:

composer require softonic/laravel-request-content-decompress-middleware

Documentation

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.

Testing

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

License

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

Related Packages

softonic/laravel-request-accept-json-middleware

Laravel middleware to add Accept application/json header to requests

57,290 4
lara-middleware/request-id

Laravel 5 RequestId Middleware

14 2
tucker-eric/laravel-xml-middleware

A Laravel Middleware to accept XML requests

1,195,408 18
illuminatech/multipart-middleware

'multipart/form-data' parser middleware for Laravel

316,213 33

Version History

Version Released PHP Laravel License
2.0.0 >=7.3 ^7.0 || ^8.0 Apache-2.0
1.0.3 >=7.1 ^5.8 || ^6.0 || ^7.0 Apache-2.0
1.0.2 >=7.1 ^5.8 || ^6.0 Apache-2.0
1.0.1 >=7.1 ^5.8 Apache-2.0
1.0.0 >=7.1 ^5.8 Apache-2.0