2017 © Pedro Peláez
 

library zip-streamer

Stream zipped data while adding files

image

frizinak/zip-streamer

Stream zipped data while adding files

  • Friday, March 10, 2017
  • by klipkens
  • Repository
  • 1 Watchers
  • 2 Stars
  • 824 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 8 % Grown

The README.md

Build Status, (*1)

Usage


$output = new ThrottledHttp('download', 1024 * 1024 * 3); // Stream ~3 MB/s $zip = new ZipStreamer($output); foreach($images as $filePath){ $zip->add('images/' . basename($filePath), $filePath); // No deflation $zip->send(); // starts reading from $filePath and streaming the zip. } foreach($httpTextFiles as $fileUri) { $zip->add('txts/' . basename($fileUri), $fileUri, 9); // Max deflation level. } $fh = fopen('http://www.google.com', 'rb'); $zip->add('google.html', $fh, -1); // Default zlib delfation level. $zip->flush(); // Sends any remaining files and finishes streaming the zip.

License: MIT, (*2)

The Versions

10/03 2017

dev-master

9999999-dev

Stream zipped data while adding files

  Sources   Download

MIT License

The Requires

  • php >=5.4.2

 

The Development Requires

10/03 2017

0.1.4

0.1.4.0

Stream zipped data while adding files

  Sources   Download

MIT License

The Requires

  • php >=5.4.2

 

The Development Requires

24/10 2014

0.1.3

0.1.3.0

Stream zipped data while adding files

  Sources   Download

MIT License

The Requires

  • php >=5.4.2

 

The Development Requires

07/09 2014

0.1.2

0.1.2.0

Stream zipped data while adding files

  Sources   Download

MIT License

The Requires

  • php >=5.4.2

 

The Development Requires

05/09 2014

0.1.1

0.1.1.0

Stream zipped data while adding files

  Sources   Download

MIT License

The Requires

  • php >=5.4.2

 

The Development Requires

01/09 2014

0.1.0

0.1.0.0

Stream zipped data while adding files

  Sources   Download

MIT License

The Requires

  • php >=5.4.2