Looking to hire Laravel developers? Try LaraJobs

laravel-request-content-decompress-middleware maintained by softonic

Description
Laravel request content decompress middleware
Last update
2020/11/05 16:21 (dev-master)
License
Downloads
25 983

Comments
comments powered by Disqus

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.