Login   Register  
PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Er. Rochak Chauhan
Name: Er. Rochak Chauhan is available for providing paid consulting. Contact Er. Rochak Chauhan .
Classes: 52 packages by
Country: India India
Age: 35
All time rank: 21 in India India
Week rank: 11 Down2 in India India Down
Innovation award
Innovation award
Nominee: 14x

Winner: 3x


  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
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.

  Classes of Er. Rochak Chauhan  >  Create ZIP File  >  Download Download .zip .tar.gz  >  Support forum Support forum (38)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Create ZIP File
Base name: createzipfile
Description: Create ZIP file archives and serve for download
Version: 1.0.0
PHP version: 5
License: Free for non-commercial use
All time users: 26529 users
All time rank: 17
Week users: 19 users
Week rank: 55 Down
 
  Groups   Rate classes User ratings   Dependents  
  Trackback   Applications   Related pages   Files Files  

  Groups  
Group folder image Files and Folders Listing, accessing and manipulating files and folders View top rated classes
Group folder image Compression Data compression and file archive manipulation View top rated classes


  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Good (84%) Good (81%) - Sufficient (76%) - - Not sure (58%) 1038
Month: Not yet rated by the users

  Other classes that need this package  
Class Why it is needed Dependency
Backup Compress the files for the backup Required

  Pages that reference this package  
Copy/Backup Folder
In that case using FTP isn't an option...
Create a zip archive using PHP (Russian)
It was necessary to realize the creation of zip file on the fly to give the user and stored on the server...
Create a zip file from folders on the fly
This class leads you to creat a zip from a forlder...
Creating a zip on the fly
I've tried Create ZIP File and it seems to do what I want....
How to Create a zip file with php on the fly
For a future project I needed these days some easy to use zip or gzip class to create a zip file from files / folders inside a specified directory...
How to create zip file archives in PHP and serve for download
Creating dynamically zip file archives in PHP is very easy...
Javascript Compressor
Javascript compressors, or packers, are tools that compress the javascript file, saving bandwidth...
Make folder zip with php
This code will zip the folder not single file but the whole folder...
PHP: Directory ZIP compression (Japanese)
Script to compress a specific directory (and all subdirectories) into a ZIP file...
Working with archives means PHP
At http://www.phpclasses.org you can download class Create ZIP File, designed to create a zip-file with the hierarchy of folders...
Zip a file or files with PHP
I provided a simple function a few days ago that would unzip a file using PHP...

Latest pages that reference packages Latest pages that reference packages


  Applications that use this package  
CakePHP
Snippet in CakePHP Framework
Zikula
Code to zip file(s)
as3pogkit
A solution for using POG with AS3 projects
Chisimba
PHP Application framework
Add link image If you know an application of this package, send a message to the author to add a link here.

  Related pages  
Demo :: Create Zip File
Demo Link
Support Open Source
Free software is a matter of liberty, not price. Think of "free" as in "free speech," not as in "free beer."
Modified Version
Refacorting by Olaf Lederer

  Files folder image Files  
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

Install with Composer Install with Composer - Download Download all files: createzipfile.tar.gz createzipfile.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.