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.

026PHP

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 today

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

15

—

LowBetter than 3% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity16

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://avatars.githubusercontent.com/u/25741025?v=4)[dablach](/maintainers/dablach)[@dablach](https://github.com/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

[ericnorris/amazon-s3-php

A lightweight and fast S3 client for PHP.

2147.0k](/packages/ericnorris-amazon-s3-php)

PHPackages © 2026

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