2017 © Pedro Peláez
 

library phpzipmerge

Merge and stream multiple Zip files on the fly.

image

grandt/phpzipmerge

Merge and stream multiple Zip files on the fly.

  • Tuesday, August 18, 2015
  • by Grandt
  • Repository
  • 2 Watchers
  • 5 Stars
  • 81,772 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 8 Versions
  • 7 % Grown

The README.md

ZipMerge

Combine and stream the contents of multiple existing Zip files, as a single file, without recompressing the data within., (*1)

This is useful if you have often used static content that needs to be collected and sent to the client. With this you can pre-compress these packages, and assemble them on the fly, saving CPU cycles by not having to do the compression every time the files are requested., (*2)

The contents of each Zip file added, can even be placed in separate sub folders., (*3)

Installation

Import

Add this requirement to your composer.json file:, (*4)

   "grandt/phpzipmerge": ">=1.0.4"

Composer

If you already have Composer installed, skip this part., (*5)

Packagist, the main composer repository has a neat and very short guide., (*6)

Or you can look at the guide at the Composer site., (*7)

The easiest for first time users, is to have the composer installed in the same directory as your composer.json file, though there are better options., (*8)

Run this from the command line:, (*9)

php -r "readfile('https://getcomposer.org/installer');" | php

This will check your PHP installation, and download the composer.phar, which is the composer binary. This file is not needed on the server though., (*10)

Once composer is installed you can create the composer.json file to import this package., (*11)

{
    "require": {
        "grandt/phpzipmerge": ">=1.0.4",
        "php": ">=5.3.0"
    }
}

Followed by telling Composer to install the dependencies., (*12)

php composer.phar install

this will download and place all dependencies defined in your composer.json file in the vendor directory., (*13)

Finally, you include the autoload.php file in the new vendor directory., (*14)

<?php
    require 'vendor/autoload.php';
    .
    .
    .

The Versions

18/08 2015

dev-master

9999999-dev https://github.com/Grandt/PHPZipMerge

Merge and stream multiple Zip files on the fly.

  Sources   Download

LGPL-2.1

The Requires

 

merge zip archive stream compression phpzip pkzip compressed

18/08 2015

1.0.4

1.0.4.0 https://github.com/Grandt/PHPZipMerge

Merge and stream multiple Zip files on the fly.

  Sources   Download

LGPL-2.1

The Requires

 

merge zip archive stream compression phpzip pkzip compressed

30/04 2015

1.0.3

1.0.3.0 https://github.com/Grandt/PHPZipMerge

Merge and stream multiple Zip files on the fly.

  Sources   Download

LGPL-2.1

The Requires

 

merge zip archive stream compression phpzip pkzip compressed

14/08 2014

1.0.2

1.0.2.0 https://github.com/Grandt/PHPZipMerge

Merge and stream multiple Zip files on the fly.

  Sources   Download

LGPL-2.1

The Requires

 

merge zip archive stream compression phpzip pkzip compressed

14/08 2014

1.0.2.x-dev

1.0.2.9999999-dev https://github.com/Grandt/PHPZipMerge

Merge and stream multiple Zip files on the fly.

  Sources   Download

LGPL-2.1

The Requires

 

merge zip archive stream compression phpzip pkzip compressed

14/08 2014

1.0.1.x-dev

1.0.1.9999999-dev https://github.com/Grandt/PHPZipMerge

Merge and stream multiple Zip files on the fly.

  Sources   Download

LGPL-2.1

The Requires

 

merge zip archive stream compression phpzip pkzip compressed

07/08 2014

1.0.1

1.0.1.0 https://github.com/Grandt/PHPZipMerge

Merge and stream multiple Zip files on the fly.

  Sources   Download

LGPL-2.1

The Requires

 

merge zip archive stream compression phpzip pkzip compressed

07/08 2014

1.0.0.x-dev

1.0.0.9999999-dev https://github.com/Grandt/PHPZipMerge

Merge and stream multiple Zip files on the fly.

  Sources   Download

LGPL-2.1

The Requires

 

merge zip archive stream compression phpzip pkzip compressed