PHPackages                             softonic/laravel-request-content-decompress-middleware - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. softonic/laravel-request-content-decompress-middleware

ActiveLibrary[HTTP &amp; Networking](/categories/http)

softonic/laravel-request-content-decompress-middleware
======================================================

Laravel request content decompress middleware

2.0.0(5y ago)826.0kApache-2.0PHPPHP &gt;=7.3

Since Jul 4Pushed 5y ago1 watchersCompare

[ Source](https://github.com/softonic/laravel-request-content-decompress-middleware)[ Packagist](https://packagist.org/packages/softonic/laravel-request-content-decompress-middleware)[ Docs](https://github.com/softonic/laravel-request-content-decompress-middleware)[ RSS](/packages/softonic-laravel-request-content-decompress-middleware/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)Dependencies (5)Versions (6)Used By (0)

Laravel request content decompress middleware
=============================================

[](#laravel-request-content-decompress-middleware)

[![Latest Version](https://camo.githubusercontent.com/b64d923f8f27587ce37da3970d2619b5b2d8ab3127682d29f446624e80e3f786/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f736f66746f6e69632f6c61726176656c2d726571756573742d636f6e74656e742d6465636f6d70726573732d6d6964646c65776172652e7376673f7374796c653d666c61742d737175617265)](https://github.com/softonic/laravel-request-content-decompress-middleware/releases)[![Software License](https://camo.githubusercontent.com/36cfc741510e076bec951c1421a2b1c3a5553e953fcdb378339626a5f33c1e8d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d417061636865253230322e302d626c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/fad89b882e552b87e0add5b29825e4dbecd00eddf5bac6b2dcfd623c63f09d01/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f736f66746f6e69632f6c61726176656c2d726571756573742d636f6e74656e742d6465636f6d70726573732d6d6964646c65776172652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/softonic/laravel-request-content-decompress-middleware)[![Coverage Status](https://camo.githubusercontent.com/f431c1e3dbbd66b3472173762581cb18c87dd2d34a96e9e027326c7c21f8097a/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f736f66746f6e69632f6c61726176656c2d726571756573742d636f6e74656e742d6465636f6d70726573732d6d6964646c65776172652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/softonic/laravel-request-content-decompress-middleware/code-structure)[![Quality Score](https://camo.githubusercontent.com/ef12386c237f42b9f2a3dc4ab04ad0d6407383bca426b6264026f7a176b2ece5/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f736f66746f6e69632f6c61726176656c2d726571756573742d636f6e74656e742d6465636f6d70726573732d6d6964646c65776172652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/softonic/laravel-request-content-decompress-middleware)[![Total Downloads](https://camo.githubusercontent.com/022c10d1229b93998fb232ebb6abe822d5e9193f8ec586c50874e4ce2cdc12e5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736f66746f6e69632f6c61726176656c2d726571756573742d636f6e74656e742d6465636f6d70726573732d6d6964646c65776172652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/softonic/laravel-request-content-decompress-middleware)[![Average time to resolve an issue](https://camo.githubusercontent.com/2e4c9f9c72a56e36761ace4e8d0481ab31565fbade3441bf432e1739f5df3902/687474703a2f2f697369746d61696e7461696e65642e636f6d2f62616467652f7265736f6c7574696f6e2f736f66746f6e69632f6c61726176656c2d726571756573742d636f6e74656e742d6465636f6d70726573732d6d6964646c65776172652e7376673f7374796c653d666c61742d737175617265)](http://isitmaintained.com/project/softonic/laravel-request-content-decompress-middleware "Average time to resolve an issue")[![Percentage of issues still open](https://camo.githubusercontent.com/7a0333dadaadc2dc1340b0d23596d63e28fca6422292efaf9fd17b9660a6f802/687474703a2f2f697369746d61696e7461696e65642e636f6d2f62616467652f6f70656e2f736f66746f6e69632f6c61726176656c2d726571756573742d636f6e74656e742d6465636f6d70726573732d6d6964646c65776172652e7376673f7374796c653d666c61742d737175617265)](http://isitmaintained.com/project/softonic/laravel-request-content-decompress-middleware "Percentage of issues still open")

This middleware adds the ability to automatically decompress the content of a compressed request

Installation
------------

[](#installation)

Via composer:

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

```

Documentation
-------------

[](#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
-------

[](#testing)

`softonic/laravel-request-content-decompress-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.

```
$ docker-compose run test
```

License
-------

[](#license)

The Apache 2.0 license. Please see [LICENSE](LICENSE) for more information.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~122 days

Total

5

Last Release

2015d ago

Major Versions

1.0.3 → 2.0.02020-11-05

PHP version history (2 changes)1.0.0PHP &gt;=7.1

2.0.0PHP &gt;=7.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/524887?v=4)[Joskfg](/maintainers/Joskfg)[@joskfg](https://github.com/joskfg)

---

Top Contributors

[![xaviapa](https://avatars.githubusercontent.com/u/8439057?v=4)](https://github.com/xaviapa "xaviapa (6 commits)")[![joskfg](https://avatars.githubusercontent.com/u/524887?v=4)](https://github.com/joskfg "joskfg (1 commits)")[![rccrdpccl](https://avatars.githubusercontent.com/u/18526422?v=4)](https://github.com/rccrdpccl "rccrdpccl (1 commits)")

---

Tags

content-encodinggziplaravelmiddlewarephprequestsunziprequestmiddlewarelaravelgzip

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/softonic-laravel-request-content-decompress-middleware/health.svg)

```
[![Health](https://phpackages.com/badges/softonic-laravel-request-content-decompress-middleware/health.svg)](https://phpackages.com/packages/softonic-laravel-request-content-decompress-middleware)
```

###  Alternatives

[omniphx/forrest

A Laravel library for Salesforce

2724.4M8](/packages/omniphx-forrest)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[matthewbdaly/laravel-etag-middleware

A Laravel middleware for adding ETags to HTTP requests to improve response times

64326.0k2](/packages/matthewbdaly-laravel-etag-middleware)[tomschlick/request-migrations

HTTP Request Migrations

1844.5k](/packages/tomschlick-request-migrations)[illuminatech/multipart-middleware

'multipart/form-data' parser middleware for Laravel

34268.8k](/packages/illuminatech-multipart-middleware)[dragon-code/laravel-http-logger

Logging incoming HTTP requests

319.8k3](/packages/dragon-code-laravel-http-logger)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
