PHPackages                             dimabdc/zipstream64 - 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. dimabdc/zipstream64

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

dimabdc/zipstream64
===================

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

0.3.0.2(8y ago)015MITPHPPHP &gt;= 5.6

Since Jan 21Pushed 8y ago1 watchersCompare

[ Source](https://github.com/dimabdc/ZipStream64)[ Packagist](https://packagist.org/packages/dimabdc/zipstream64)[ RSS](/packages/dimabdc-zipstream64/feed)WikiDiscussions master Synced yesterday

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

ZipStream64
===========

[](#zipstream64)

Streaming Zips with 64bit large file support

Please see the file LICENSE.md for licensing and warranty information (Standard MIT Licence).

Installation
------------

[](#installation)

Easiest installation is via Composer:

```
  "require": {
      "brokencube/zipstream64": "0.1.*"
  }
```

Overview
--------

[](#overview)

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

```
use brokencube\ZipStream\ZipStream;

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

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

# create a file named 'hello.txt'
$zip->addFile('hello.txt', '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);

# add a file named 'farewell.txt' from a PSR7 stream (e.g. Guzzle / AWS)
$amazonS3 = new Sdk()->createS3();
$file = $amazonS3->getObject(['Bucket' => 'bucket.name', 'Key' => 'path/to/farewell.txt']);
$zip->addFileFromPsr7Stream('farewell.txt', $file['Body']);

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

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

[](#requirements)

- 64-bit PHP version 5.6 or newer.

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

[](#contributors)

This project leans *very* heavily on previous work of the following projects:

-
-

95% of kudos for this project goes to them!

Some Caveats
------------

[](#some-caveats)

64bit Zips don't work properly with macOS's default Zip library (i.e. used by the built-in unarchive). If you need &gt;4GB Zips on mac, your users will need to use 3rd party software to unzip them. If your zip is going to be smaller, you can turn off 64bit support by calling:

```
$zip = new ZipStream('example.zip', [ZipStream::OPTION_USE_ZIP64 => false]);
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 62.5% 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 ~78 days

Recently: every ~153 days

Total

11

Last Release

2984d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b01a0c3badbc78ac4214743fe42ffe84134e528902b24dafffcb94d533cbf0a6?d=identicon)[dimabdc](/maintainers/dimabdc)

---

Top Contributors

[![brokencube](https://avatars.githubusercontent.com/u/3684869?v=4)](https://github.com/brokencube "brokencube (5 commits)")[![dimabdc](https://avatars.githubusercontent.com/u/4645687?v=4)](https://github.com/dimabdc "dimabdc (2 commits)")[![pleaseremove](https://avatars.githubusercontent.com/u/1636879?v=4)](https://github.com/pleaseremove "pleaseremove (1 commits)")

---

Tags

streamzip64bit

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dimabdc-zipstream64/health.svg)

```
[![Health](https://phpackages.com/badges/dimabdc-zipstream64/health.svg)](https://phpackages.com/packages/dimabdc-zipstream64)
```

###  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)[league/flysystem-ziparchive

ZIP filesystem adapter for Flysystem.

1039.3M58](/packages/league-flysystem-ziparchive)[barracudanetworks/archivestream-php

A library for dynamically streaming dynamic tar or zip files without the need to have the complete file stored on the server.

77192.2k1](/packages/barracudanetworks-archivestream-php)[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)

PHPackages © 2026

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