Registry / utility / maennchen-zipstream-php

maennchen-zipstream-php

JSON →
library3.2.2phppackagistunverified

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

composer require maennchen/zipstream-php
INSTALL
IMPORT
SIG · MAENNCHEN-ZIPSTREA
M
maennchen-zipstream-php
utilityphpv3.2.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ZipStream
use ZipStream\ZipStream;

Stream a zip file containing a single text file directly to the browser

use ZipStream\ZipStream; $zip = new ZipStream('archive.zip'); $zip->addFile('hello.txt', 'Hello World!'); $zip->finish();
Debug
Known issues
gotchaOutput buffering must be disabled or flushed before streaming
fix
Call ob_end_flush() or ob_end_clean() before creating ZipStream instance
affects: >=3.0.0
Upgrade
Version history
3.2.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
maennchen-zipstream-php — pip install maennchen-zipstream-php · libregistry