PHPackages                             dlintin/zipstream-php - 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. dlintin/zipstream-php

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

dlintin/zipstream-php
=====================

ZipStream is a library for dynamically streaming dynamic zip files from PHP without writing to the disk at all on the server.

0.1.1(4y ago)2941MITPHPPHP &gt;= 5.3

Since Apr 10Pushed 4y ago1 watchersCompare

[ Source](https://github.com/dlintin/zipstream-php)[ Packagist](https://packagist.org/packages/dlintin/zipstream-php)[ RSS](/packages/dlintin-zipstream-php/feed)WikiDiscussions main Synced 1w ago

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

ZipStream README
================

[](#zipstream-readme)

Please see the file LICENSE.md for licensing and warranty information. The latest version of this software is available at the following URL:

This lib is forked from: `https://github.com/maennchen/ZipStream-PHP` from version: `0.3.*` to maintain compatibility with `s3-bucket-stream-zip-php` version: `4.0`

Instalation
-----------

[](#instalation)

Simply add a dependency on dlintin/zipstream-php to your project's composer.json file if you use Composer to manage the dependencies of your project. Here is a minimal example of a composer.json file.

```
{
    "require": {
        "dlintin/zipstream-php": "0.1.1"
    }
}
```

Overview
--------

[](#overview)

A fast and simple streaming zip file downloader for PHP. Here's a simple example:

```
# Autoload the dependencies
require 'vendor/autoload.php';

# create a new zipstream object
$zip = new ZipStream\ZipStream('example.zip');

# create a file named 'hello.txt'
$zip->addFile('some_image.jpg', 'This is the contents of hello.txt');

# add a file named 'image.jpg' from a local file 'path/to/image.jpg'
$zip->addFileFromPath('some_image.jpg', 'path/to/image.jpg');

# add a file named 'goodbye.txt' from an open stream resource
$fp = tmpfile();
fwrite($fp, 'The quick brown fox jumped over the lazy dog.');
$zip->addFileFromStream('goodbye.txt', $fp);
fclose($fp);

# finish the zip stream
$zip->finish();
```

You can also add comments, modify file timestamps, and customize (or disable) the HTTP headers. See the class file for details. There are a couple of additional examples in the initial release announcement at the following URL:

Requirements
------------

[](#requirements)

- PHP version 5.3 or newer.

Contributors
------------

[](#contributors)

Please take a look at the CONTRIBUTOR-README.md File.

About the Authors
-----------------

[](#about-the-authors)

- Paul Duncan  -
- Jonatan Männchen  -
- Jesse G. Donat  -

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity34

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1499d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/791b77f58173b8574eb601b8c59c8d8072384d375dfe652fc93661079c9c18db?d=identicon)[dlintin](/maintainers/dlintin)

---

Top Contributors

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

---

Tags

streamzip

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dlintin-zipstream-php/health.svg)

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

###  Alternatives

[maennchen/zipstream-php

ZipStream is a library for dynamically streaming dynamic zip files from PHP without writing to the disk at all on the server.

1.9k286.3M147](/packages/maennchen-zipstream-php)[nelexa/zip

PhpZip is a php-library for extended work with ZIP-archives. Open, create, update, delete, extract and get info tool. Supports appending to existing ZIP files, WinZip AES encryption, Traditional PKWARE Encryption, BZIP2 compression, external file attributes and ZIP64 extensions. Alternative ZipArchive. It does not require php-zip extension.

4967.4M112](/packages/nelexa-zip)[phpzip/phpzip

Package to create and stream archives of compressed files in ZIP format with PHP 5.3+

124840.7k9](/packages/phpzip-phpzip)[zanysoft/laravel-zip

laravel-zip is the world's leading zip utility for file compression and backup.

3142.8M15](/packages/zanysoft-laravel-zip)[wapmorgan/unified-archive

UnifiedArchive - an archive manager with unified interface of working with all popular archive formats (zip/7z/rar/gz/bz2/xz/cab/tar/tar.gz/tar.bz2/tar.x/tar.Z/...) for PHP with ability for listing, reading, extracting and creation + built-in console archive manager.

2791.6M7](/packages/wapmorgan-unified-archive)[league/flysystem-ziparchive

ZIP filesystem adapter for Flysystem.

1039.3M58](/packages/league-flysystem-ziparchive)

PHPackages © 2026

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