2017 © Pedro Peláez
 

library zip-stream

Stream files as zip archive on the fly

image

phpextra/zip-stream

Stream files as zip archive on the fly

  • Friday, September 4, 2015
  • by jkobus
  • Repository
  • 1 Watchers
  • 2 Stars
  • 281 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

ZIP Stream

Stream your files as a zip stream without wasting server's memory., (*1)

Latest Stable Version Total Downloads Latest Unstable Version License Build Status Scrutinizer Code Quality Code Coverage GitTip, (*2)

Usage

<?php

header('Content-disposition: attachment; filename="zip-stream-example.zip"');
header('Content-Type: application/octet-stream');

require_once __DIR__ . '/vendor/autoload.php';

$zipStream = new \PHPExtra\ZipStream\ZipStream(array(__DIR__ . '/5GB-large-file.mp3'));

while(!$zipStream->eof()){
    echo $zipStream->read(8192);
}

$zipStream->close();

Installation (Composer)

{
    "require": {
        "phpextra/zip-stream":"*"
    }
}

Changelog

No releases yet

Contributing

All code contributions must go through a pull request. Fork the project, create a feature branch, and send me a pull request. To ensure a consistent code base, you should make sure the code follows the coding standards. If you would like to help take a look at the list of issues., (*3)

Authors

Jacek Kobus - <kobus.jacek@gmail.com>

License information

See the file LICENSE.txt for copying permission

The Versions

04/09 2015

dev-master

9999999-dev

Stream files as zip archive on the fly

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Jacek Kobus