Skip to content
This repository has been archived by the owner on Nov 21, 2017. It is now read-only.

phpextra/zip-stream

Repository files navigation

#ZIP Stream

Stream your files as a zip stream without wasting server's memory.

Latest Stable Version Total Downloads Latest Unstable Version License Build Status Scrutinizer Code Quality Code Coverage GitTip

##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.

##Authors

Jacek Kobus - <[email protected]>

License information

See the file LICENSE.txt for copying permission

About

Stream your files as a zip stream.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages