PHPackages                             jmathai/s3-bucket-stream-zip-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. jmathai/s3-bucket-stream-zip-php

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

jmathai/s3-bucket-stream-zip-php
================================

PHP library to efficiently stream contents from an AWS S3 bucket or folder as a zip file

v2.0(9y ago)56114.9k15[7 issues](https://github.com/jmathai/s3-bucket-stream-zip-php/issues)MITPHPPHP &gt;=7.0

Since Nov 28Pushed 8y ago3 watchersCompare

[ Source](https://github.com/jmathai/s3-bucket-stream-zip-php)[ Packagist](https://packagist.org/packages/jmathai/s3-bucket-stream-zip-php)[ Docs](https://github.com/limenet/s3-bucket-stream-zip-php)[ RSS](/packages/jmathai-s3-bucket-stream-zip-php/feed)WikiDiscussions master Synced 2d ago

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

S3BucketStreamZip
=================

[](#s3bucketstreamzip)

[![Build Status](https://camo.githubusercontent.com/28f34ee8d5acbb10a597541cf7ae8abb58352af8ef78c5f7af794bf25c154872/68747470733a2f2f7472617669732d63692e6f72672f6a6d61746861692f73332d6275636b65742d73747265616d2d7a69702d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jmathai/s3-bucket-stream-zip-php)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/08e8df828590f9fa5b0a579b0b9d07eeadd9ad012fe47fa2b4e29145a0fb10f5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a6d61746861692f73332d6275636b65742d73747265616d2d7a69702d7068702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/jmathai/s3-bucket-stream-zip-php/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/524f05ae36590b715dc6306b27fcb592b5826835a9b756b94a8295a27ba65c24/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a6d61746861692f73332d6275636b65742d73747265616d2d7a69702d7068702f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/jmathai/s3-bucket-stream-zip-php/?branch=master)

Overview
--------

[](#overview)

This library lets you efficiently stream the contents of an S3 bucket/folder as a zip file to the client.

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

[](#installation)

Installation is done via composer by adding the a dependency on jmathai/s3-bucket-stream-zip-php.

```
composer require jmathai/s3-bucket-stream-zip-php
composer install

```

Usage
-----

[](#usage)

```
// taken from examples/simple.php
// since large buckets may take lots of time we remove any time limits
set_time_limit(0);
require sprintf('%s/../vendor/autoload.php', __DIR__);

use JMathai\S3BucketStreamZip\S3BucketStreamZip;
use JMathai\S3BucketStreamZip\Exception\InvalidParameterException;

$stream = new S3BucketStreamZip(
            // $auth
            array(
              'key'     => '*********',   // required
              'secret'  => '*********'    // required
            ),
            // $params
            array(
              'Bucket'  => 'bucketname',  // required
              'Prefix'  => 'subfolder/'   // optional (path to folder to stream)
            )
          );

$stream->send('name-of-zipfile-to-send.zip');
```

Authors
-------

[](#authors)

- Jaisen Mathai  -

Dependencies
------------

[](#dependencies)

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

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity43

Moderate usage in the ecosystem

Community13

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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 ~153 days

Total

4

Last Release

3411d ago

Major Versions

v1.0 → v2.02017-03-02

PHP version history (2 changes)1.0.1PHP &gt;=5.3.3

v2.0PHP &gt;=7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6384?v=4)[Jaisen Mathai](/maintainers/jmathai)[@jmathai](https://github.com/jmathai)

---

Top Contributors

[![jmathai](https://avatars.githubusercontent.com/u/6384?v=4)](https://github.com/jmathai "jmathai (20 commits)")

---

Tags

streamphpamazons3awszipdownload

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jmathai-s3-bucket-stream-zip-php/health.svg)

```
[![Health](https://phpackages.com/badges/jmathai-s3-bucket-stream-zip-php/health.svg)](https://phpackages.com/packages/jmathai-s3-bucket-stream-zip-php)
```

###  Alternatives

[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.7k285.7M1.0k](/packages/league-flysystem-aws-s3-v3)[aws/aws-sdk-php-laravel

A simple Laravel 9/10/11/12/13 service provider for including the AWS SDK for PHP.

1.7k38.2M84](/packages/aws-aws-sdk-php-laravel)[eddturtle/direct-upload

Composer Package to build an AWS Signature ready to Direct Upload to S3

88756.7k2](/packages/eddturtle-direct-upload)[vinelab/cdn

Content Delivery Network (CDN) Package for Laravel

217244.0k1](/packages/vinelab-cdn)[kolay/xlsx-stream

Streaming XLSX reader and writer for PHP and Laravel. Constant memory regardless of file size, direct S3 multipart streaming, optional born-indexed random access.

437.9k](/packages/kolay-xlsx-stream)[fedemotta/yii2-aws-sdk

This extension provides the AWS SDK integration for the Yii2 framework

15448.9k2](/packages/fedemotta-yii2-aws-sdk)

PHPackages © 2026

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