PHPackages                             w7/rangine-zipstream - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. w7/rangine-zipstream

ActiveLibrary[File &amp; Storage](/categories/file-storage)

w7/rangine-zipstream
====================

zipstream-php for swoole

v1.0.1(6y ago)11.3kApache-2.0PHP

Since Feb 20Pushed 6y ago2 watchersCompare

[ Source](https://github.com/we7coreteam/w7-rangine-zipstream)[ Packagist](https://packagist.org/packages/w7/rangine-zipstream)[ RSS](/packages/w7-rangine-zipstream/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

说明
==

[](#说明)

基于 [ZipStream-PHP](https://github.com/maennchen/ZipStream-PHP) 库，优化了对 Swoole 扩展的支持。

使用
==

[](#使用)

配置 options 与原始库一样，只是需要指定 outputStream 为 Swoole Respons 对象。

\\W7\\ZipStream\\ZipStream 对象继承自 \\ZipStream\\ZipStream 对象，只是重写了 Send 方法。 使用方法与原始库一致。

```
$options = new \ZipStream\Option\Archive();
$options->setSendHttpHeaders(true);
//指定 output 对象为 swoole response对象
$options->setOutputStream($this->response());

$zip = new \W7\ZipStream\ZipStream('example.zip', $options);
for ($i=0; $iaddFile($i, 'test');
}

$zip->finish();

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

2274d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/67366373461d229a38d9b2f4b9f5fe6bd87a1c9bb74fedcf45d089f3ec90268d?d=identicon)[donknap@gmail.com](/maintainers/donknap@gmail.com)

---

Top Contributors

[![donknap](https://avatars.githubusercontent.com/u/4213382?v=4)](https://github.com/donknap "donknap (7 commits)")

---

Tags

rangineswoolezipstreamzipstream-phpphpswoolezipstream-php

### Embed Badge

![Health badge](/badges/w7-rangine-zipstream/health.svg)

```
[![Health](https://phpackages.com/badges/w7-rangine-zipstream/health.svg)](https://phpackages.com/packages/w7-rangine-zipstream)
```

###  Alternatives

[jmathai/s3-bucket-stream-zip-php

PHP library to efficiently stream contents from an AWS S3 bucket or folder as a zip file

56114.4k](/packages/jmathai-s3-bucket-stream-zip-php)[blueimp/jquery-file-upload

File Upload widget for jQuery.

141.5M18](/packages/blueimp-jquery-file-upload)

PHPackages © 2026

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