{"id":17209439,"url":"https://github.com/jmathai/s3-bucket-stream-zip-php","last_synced_at":"2025-04-13T22:31:17.888Z","repository":{"id":28249499,"uuid":"31756430","full_name":"jmathai/s3-bucket-stream-zip-php","owner":"jmathai","description":"PHP library to efficiently stream contents from an AWS S3 bucket or folder as a zip file.","archived":false,"fork":false,"pushed_at":"2017-07-23T17:53:50.000Z","size":35,"stargazers_count":56,"open_issues_count":8,"forks_count":16,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-27T12:52:35.237Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jmathai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-06T06:48:15.000Z","updated_at":"2024-07-22T11:01:16.000Z","dependencies_parsed_at":"2022-06-26T08:00:13.983Z","dependency_job_id":null,"html_url":"https://github.com/jmathai/s3-bucket-stream-zip-php","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmathai%2Fs3-bucket-stream-zip-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmathai%2Fs3-bucket-stream-zip-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmathai%2Fs3-bucket-stream-zip-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmathai%2Fs3-bucket-stream-zip-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmathai","download_url":"https://codeload.github.com/jmathai/s3-bucket-stream-zip-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248600565,"owners_count":21131508,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T02:51:36.531Z","updated_at":"2025-04-13T22:31:17.621Z","avatar_url":"https://github.com/jmathai.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# S3BucketStreamZip\n\n[![Build Status](https://travis-ci.org/jmathai/s3-bucket-stream-zip-php.svg?branch=master)](https://travis-ci.org/jmathai/s3-bucket-stream-zip-php)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/jmathai/s3-bucket-stream-zip-php/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/jmathai/s3-bucket-stream-zip-php/?branch=master)\n[![Code Coverage](https://scrutinizer-ci.com/g/jmathai/s3-bucket-stream-zip-php/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/jmathai/s3-bucket-stream-zip-php/?branch=master)\n\n## Overview\nThis library lets you efficiently stream the contents of an S3 bucket/folder as a zip file to the client.\n\n## Installation\nInstallation is done via composer by adding the a dependency on jmathai/s3-bucket-stream-zip-php.\n\n```\ncomposer require jmathai/s3-bucket-stream-zip-php\ncomposer install\n```\n\n## Usage\n```php\n// taken from examples/simple.php\n// since large buckets may take lots of time we remove any time limits\nset_time_limit(0);\nrequire sprintf('%s/../vendor/autoload.php', __DIR__);\n\nuse JMathai\\S3BucketStreamZip\\S3BucketStreamZip;\nuse JMathai\\S3BucketStreamZip\\Exception\\InvalidParameterException;\n\n$stream = new S3BucketStreamZip(\n            // $auth\n            array(\n              'key'     =\u003e '*********',   // required\n              'secret'  =\u003e '*********'    // required\n            ),\n            // $params\n            array(\n              'Bucket'  =\u003e 'bucketname',  // required\n              'Prefix'  =\u003e 'subfolder/'   // optional (path to folder to stream)\n            )\n          );\n\n$stream-\u003esend('name-of-zipfile-to-send.zip');\n\n```\n\n## Authors\n* Jaisen Mathai \u003cjaisen@jmathai.com\u003e - http://jaisenmathai.com\n\n## Dependencies\n* Paul Duncan \u003cpabs@pablotron.org\u003e - http://pablotron.org/\n* Jonatan Männchen \u003cjonatan@maennchen.ch\u003e - http://commanders.ch\n* Jesse G. Donat \u003cdonatj@gmail.com\u003e - https://donatstudios.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmathai%2Fs3-bucket-stream-zip-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmathai%2Fs3-bucket-stream-zip-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmathai%2Fs3-bucket-stream-zip-php/lists"}