PHP Classes

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

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (38)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 58%Total: 27,990 All time: 17 This week: 154Down
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: 53 packages by
Country: India India
Age: 44
All time rank: 21 in India India
Week rank: 93 Down9 in India India Down
Innovation award
Innovation award
Nominee: 14x

Winner: 3x

  Files folder image Files  
File Role Description
Plain text file Class Create a Zip File on the fly
Plain text file Class Create a Zip File on the fly for Mac users
Accessible without login Plain text file exampleScript.php Example Example file

 Version Control Reuses Unique User Downloads Download Rankings  
This week:0
All time:17
This week:154Down
User Ratings User Comments (8)
 All time
this is the perfect class, if your hoster wont allow you to u...
11 years ago (mafmaf)
Useful thingummy.
12 years ago (Fox)
I love that you've developed a way to zip up files/directorie...
12 years ago (george davidson)
Excellent class! Works great!
13 years ago (Nathan Shackles)
The class file was good.
13 years ago (venkatachalam ravindran)
another indian-style code.
13 years ago (Nick Lavrov)
This is a great little class and is extremely useful.
14 years ago (Kevin Jones)
It doesn't work.
14 years ago (Dave Pedu)