|Classes of Asbjorn Grandt||>||PHP Zip Merge||>||README.md||>||Download|
Combine and stream the contents of multiple existing Zip files, as a single file, without recompressing the data within.
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.
The contents of each Zip file added, can even be placed in separate sub folders.
Add this requirement to your
If you already have Composer installed, skip this part.
Packagist, the main composer repository has a neat and very short guide.
Or you can look at the guide at the Composer site.
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.
Run this from the command line:
This will check your PHP installation, and download the
Once composer is installed you can create the
Followed by telling Composer to install the dependencies.
this will download and place all dependencies defined in your
Finally, you include the