PHPackages                             aaronsaray/slimphp-compression-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. aaronsaray/slimphp-compression-middleware

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

aaronsaray/slimphp-compression-middleware
=========================================

GZip Compression Middleware for SlimPHP

11.9kPHP

Since Jan 10Pushed 10y ago1 watchersCompare

[ Source](https://github.com/aaronsaray/slimphp-compression-middleware)[ Packagist](https://packagist.org/packages/aaronsaray/slimphp-compression-middleware)[ RSS](/packages/aaronsaray-slimphp-compression-middleware/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

SlimPHP Compression Middleware
==============================

[](#slimphp-compression-middleware)

Need to add gzip compression to your output but don't have access to the server configuration? This is a middleware for [SlimPHP Framework](http://www.slimframework.com/) to use HTTP+gzip compression.

**Please note: If you CAN add this functionality to your server config, please do that instead.**

Installation Instructions
-------------------------

[](#installation-instructions)

Install the latest version with

```
$ composer require aaronsaray/slimphp-compression-middleware
```

Usage Instructions
------------------

[](#usage-instructions)

```
$app = new \Slim\Slim();
$compressMiddleware = new \AaronSaray\SlimPHPMiddleware\Compress();
$app->add($compressMiddleware);
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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/5a9ad2a426eb84bbb6d5fd7f8a9000797796581c2aeda0d27b39391e55c0e7a3?d=identicon)[aaronsaray](/maintainers/aaronsaray)

---

Top Contributors

[![aaronsaray](https://avatars.githubusercontent.com/u/956888?v=4)](https://github.com/aaronsaray "aaronsaray (19 commits)")

### Embed Badge

![Health badge](/badges/aaronsaray-slimphp-compression-middleware/health.svg)

```
[![Health](https://phpackages.com/badges/aaronsaray-slimphp-compression-middleware/health.svg)](https://phpackages.com/packages/aaronsaray-slimphp-compression-middleware)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

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