PHPackages                             dablach/zip-stream-reader - 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. dablach/zip-stream-reader

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

dablach/zip-stream-reader
=========================

Stream reader for extracting zip archives on the fly.

024PHP

Since Feb 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/dablach/zip-stream-reader)[ Packagist](https://packagist.org/packages/dablach/zip-stream-reader)[ RSS](/packages/dablach-zip-stream-reader/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (1)Used By (0)

Stream Reader for ZIP files
===========================

[](#stream-reader-for-zip-files)

Read ZIP files from stream in a memory efficient way without first downloading the whole file.

Note

ZIP files can contain entries with no size set in the local file header. These entries can only be read after parsing the central directory which is at the end of the file, making it impossible to read such a file in a streaming fashion. When `ZipStreamReader` encounters such an entry in an unseekable stream, it wil load the remaining contents into `php://temp` and read the rest from there.

Usage
-----

[](#usage)

```
$reader = ZipStreamReader::open("https://...");

foreach ($reader as $entry) {
  echo "Name: " . $entry->getName() . "\n";
  echo "Modified: " . $entry->getMtime()->format('r') . "\n";

  $handle = $entry->getStream();
  // $handle is a resource you can use to read the file content (e.g. fread, fgetcsv ..)
}
```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

 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/429aa4f02341f9390f428cc8d708a42667d5d24e6379882bf573366466562eaf?d=identicon)[dablach](/maintainers/dablach)

---

Top Contributors

[![dablach](https://avatars.githubusercontent.com/u/25741025?v=4)](https://github.com/dablach "dablach (2 commits)")

### Embed Badge

![Health badge](/badges/dablach-zip-stream-reader/health.svg)

```
[![Health](https://phpackages.com/badges/dablach-zip-stream-reader/health.svg)](https://phpackages.com/packages/dablach-zip-stream-reader)
```

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M125](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)

PHPackages © 2026

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