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

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

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

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

1.0.2(9y ago)1293MITPHPPHP &gt;=5.3.3

Since Mar 6Pushed 8y agoCompare

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

READMEChangelogDependencies (3)Versions (4)Used By (0)

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

[](#s3bucketstreamzip)

[![Build Status](https://camo.githubusercontent.com/f80c929ece0e8728f5b35dd0750df17d19463e5e752ccdb57c4590df46dca45f/68747470733a2f2f7472617669732d63692e6f72672f7767656e69616c2f73332d6275636b65742d73747265616d2d7a69702d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/wgenial/s3-bucket-stream-zip-php)[![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');

$stream->sendFiles('name-of-zipfile-to-send-2.zip', array(
  'files' => array(
    array(
      'key' => 'filename1.jpg',
    },
    array(
      'key' => 'filename2.jpg',
      'name' => 'image2.jpg'
    },
  )
);
```

Authors
-------

[](#authors)

- Jaisen Mathai  -

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

[](#dependencies)

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

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 80% 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 ~303 days

Total

3

Last Release

3527d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/06e2cd462dd312f4bacea716be1d9a414e66b31199b2a387a895cb9bc6b480a5?d=identicon)[giovanigenerali](/maintainers/giovanigenerali)

---

Top Contributors

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

---

Tags

amazon-s3-storageawscompressiondownloadphps3zipstreamphpamazons3awszipdownload

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

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

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

56114.7k](/packages/jmathai-s3-bucket-stream-zip-php)[aws/aws-sdk-php-laravel

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

1.7k37.3M83](/packages/aws-aws-sdk-php-laravel)[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.7k277.8M968](/packages/league-flysystem-aws-s3-v3)[eddturtle/direct-upload

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

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

Content Delivery Network (CDN) Package for Laravel

217242.9k1](/packages/vinelab-cdn)[fedemotta/yii2-aws-sdk

This extension provides the AWS SDK integration for the Yii2 framework

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

PHPackages © 2026

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