PHPackages                             alone-webman/compress - 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. alone-webman/compress

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

alone-webman/compress
=====================

中间件-内容编码压缩

1.0.0(11mo ago)011MITPHPPHP &gt;=8.0

Since May 29Pushed 11mo agoCompare

[ Source](https://github.com/alone-webman/compress)[ Packagist](https://packagist.org/packages/alone-webman/compress)[ RSS](/packages/alone-webman-compress/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

中间件-内容编码压缩
==========

[](#中间件-内容编码压缩)

- 仅限在webman中使用

### 安装仓库

[](#安装仓库)

```
composer require alone-webman/compress

```

### 中间件方法

[](#中间件方法)

- 可以任何`config/middleware.php`中使用

```
return [
    '@' => [alone_mid_compress(array $encoding = ['br', 'gzip', 'deflate'])]
];
```

### 内容编码压缩方法

[](#内容编码压缩方法)

- 不使用中间件时可以使用此方法

```
alone_compress(string $encoding, string $body, array $method = []):array;
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance50

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

354d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1c6a1452b0598af23c8cf24d868ce58f81436f9a16e487ceaa202c463c31f371?d=identicon)[zhqingphp](/maintainers/zhqingphp)

### Embed Badge

![Health badge](/badges/alone-webman-compress/health.svg)

```
[![Health](https://phpackages.com/badges/alone-webman-compress/health.svg)](https://phpackages.com/packages/alone-webman-compress)
```

###  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)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

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

78126.4M414](/packages/react-http)

PHPackages © 2026

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