PHPackages                             zenia9012/laravel-gzip - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. zenia9012/laravel-gzip

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

zenia9012/laravel-gzip
======================

Gzip your responses.

0502↓50%PHP

Since Aug 27Pushed 2y agoCompare

[ Source](https://github.com/zenia9012/laravel-gzip)[ Packagist](https://packagist.org/packages/zenia9012/laravel-gzip)[ RSS](/packages/zenia9012-laravel-gzip/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Gzip
============

[](#laravel-gzip)

Laravel Gzip is a simple and effective way to gzip your response for a better performance.

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

[](#installation)

You can install the package via composer:

```
composer require erlandmuchasaj/laravel-gzip
```

Config file
-----------

[](#config-file)

Publish the configuration file using artisan.

```
php artisan vendor:publish --provider="ErlandMuchasaj\LaravelGzip\GzipServiceProvider"
```

Usage
-----

[](#usage)

This package has a very easy and straight-forward usage. Just add the middleware to the `web` middleware group in `app/Http/Kernel.php`like so:

```
protected $middlewareGroups = [
    'web' => [
        //...
        \ErlandMuchasaj\LaravelGzip\Middleware\GzipEncodeResponse::class,
    ],
];
```

Benchmark
---------

[](#benchmark)

I tested this package with a fresh installed laravel in homepage and got:

`No Gzip => 72.9kb`

`With Gzip => 19.2kb *`

---

Support me
----------

[](#support-me)

I invest a lot of time and resources into creating [best in class open source packages](https://github.com/erlandmuchasaj?tab=repositories).

If you found this package helpful you can show support by clicking on the following button below and donating some amount to help me work on these projects frequently.

[ ![buy me a coffee](https://camo.githubusercontent.com/58c5ff7fa04b3393e6eb6103b591ef6dceee6e1c64dc924ba2713a86b51d8cb7/68747470733a2f2f7777772e6275796d6561636f666665652e636f6d2f6173736574732f696d672f67756964656c696e65732f646f776e6c6f61642d6173736574732d322e737667)](https://www.buymeacoffee.com/erland)Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please see [SECURITY](SECURITY.md) for details.

Credits
-------

[](#credits)

- [Erland Muchasaj](https://github.com/erlandmuchasaj)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity21

Early-stage or recently created project

 Bus Factor1

Top contributor holds 60% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2d8963821bca4a30f7e613b311028a09072ff3e100da3ffbbf89fa8933167655?d=identicon)[Yevhenii](/maintainers/Yevhenii)

---

Top Contributors

[![erlandmuchasaj](https://avatars.githubusercontent.com/u/6152399?v=4)](https://github.com/erlandmuchasaj "erlandmuchasaj (3 commits)")[![zenia9012](https://avatars.githubusercontent.com/u/24375317?v=4)](https://github.com/zenia9012 "zenia9012 (2 commits)")

### Embed Badge

![Health badge](/badges/zenia9012-laravel-gzip/health.svg)

```
[![Health](https://phpackages.com/badges/zenia9012-laravel-gzip/health.svg)](https://phpackages.com/packages/zenia9012-laravel-gzip)
```

###  Alternatives

[wpbp/generator

Generator of Wordpress Plugin Boilerplate Powered

832.3k](/packages/wpbp-generator)

PHPackages © 2026

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