PHPackages                             mateuszanella/php-archive-stream - 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. mateuszanella/php-archive-stream

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

mateuszanella/php-archive-stream
================================

A modular and lightweight PHP library for creating ZIP and TAR archives on-the-fly with streaming support.

v1.0.2(9mo ago)19324[3 issues](https://github.com/mateuszanella/php-archive-stream/issues)MITPHPPHP ^8.3CI passing

Since Jul 25Pushed 9mo ago2 watchersCompare

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

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

PHP Archive Stream
==================

[](#php-archive-stream)

A modular and lightweight PHP library for creating ZIP and TAR archives on-the-fly with streaming support. Perfect for generating large archives without consuming excessive memory.

Features
--------

[](#features)

- 🚀 Stream-based archive creation (low memory usage)
- 📦 Support for ZIP, TAR, and TAR.GZ formats
- 🔧 Configurable compression and chunk sizes
- 🌐 HTTP download support with proper headers
- 📁 Multiple output destinations (file, HTTP, custom streams)
- 🔌 Extensible architecture for custom formats

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

[](#installation)

```
composer require mateuszanella/php-archive-stream
```

Quick Start
-----------

[](#quick-start)

### Basic Usage

[](#basic-usage)

To get started, include the library and create an `ArchiveManager` instance:

```
