PHP Classes

Create ZIP File: Create ZIP file archives and serve for download

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 57%Total: 28,007 All time: 17 This week: 73Down
Version License PHP version Categories
createzipfile 1.0.0Free for non-comm...5Files and Folders, Compression
Description 

Author

This class can create ZIP archives from lists of files.

The class provides means to add individual files or whole directories to the list of files packed into a ZIP archive.

The class can generate the packed archive as a string value.

The class can also output the necessary request response headers to serve the generated ZIP archive for download.

The supplied example demonstrates how to use the class to store the ZIP archive in a file, serve it for download and delete the file after it is served.

Picture of Er. Rochak Chauhan
  Performance   Level  
Name: Er. Rochak Chauhan is available for providing paid consulting. Contact Er. Rochak Chauhan .
Classes: 54 packages by
Country: India India
Age: 45
All time rank: 21 in India India
Week rank: 164 Down16 in India India Down
Innovation award
Innovation award
Nominee: 15x

Winner: 4x

  Files folder image Files (3)  
File Role Description
Plain text file CreateZipFile.inc.php Class Create a Zip File on the fly
Plain text file CreateZipFileMac.zip.php Class Create a Zip File on the fly for Mac users
Accessible without login Plain text file exampleScript.php Example Example file

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Reuses Unique User Downloads Download Rankings  
 0%1
Total:28,007
This week:0
All time:17
This week:73Down
User Ratings User Comments (8)
 All time
Utility:83%StarStarStarStarStar
Consistency:82%StarStarStarStarStar
Documentation:-
Examples:77%StarStarStarStar
Tests:-
Videos:-
Overall:57%StarStarStar
Rank:1574
 
this is the perfect class, if your hoster wont allow you to u...
13 years ago (mafmaf)
70%StarStarStarStar
Useful thingummy.
13 years ago (Fox)
70%StarStarStarStar
I love that you've developed a way to zip up files/directorie...
14 years ago (george davidson)
45%StarStarStar
Excellent class! Works great!
14 years ago (Nathan Shackles)
70%StarStarStarStar
The class file was good.
15 years ago (venkatachalam ravindran)
65%StarStarStarStar
another indian-style code.
15 years ago (Nick Lavrov)
7%Star
This is a great little class and is extremely useful.
15 years ago (Kevin Jones)
57%StarStarStar
It doesn't work.
16 years ago (Dave Pedu)
10%Star