Download .zip |
Info | Example | View files (7) | Download .zip | Reputation | Support forum (26) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2014-06-17 (2 years ago) | 68% | Total: 5,420 This week: 2 | All time: 432 This week: 491 |
Version | License | PHP version | Categories | |||
zip 1.64 | GNU Lesser Genera... | 5.2 | PHP 5, Files and Folders, Compression |
Description | Author | ||||||||||||||
This class can be used to create archives of compressed files in ZIP format. |
|
A pair of PHP classes to generate zip files. The projects that started these two classes are hosted on PHPClasses.org at the addresses: Zip : http://www.phpclasses.org/package/6110 ZipStream: http://www.phpclasses.org/package/6616 ***************************************************************************************************************** WARNING: THE CURRENT VERSION OF PHPZip *WILL* FAIL IF THE SERVER HAS mbstring.func_overload INSTALLED AND ACTIVE! ***************************************************************************************************************** Zip.php generates the Zip file in memory (or tempfile) allowing the parent script to save the final Zip file elsewhere, and/or send it to the user. ZipStream has much of the same features and functions of Zip.php, with a few notable differences, it does not cache and build the zip file on the server, instead it'll send the file to the user as a stream. See the examples for example usage. The php files have "some" doumentation in them in the form of Javadoc style function headers. NOTE: Please ensure that output buffering is disabled when using especially ZipStream. It defeats the purpose of the class, and large zip files may cause a memory exceeded exception. NOTE2: THe Zip and ZipStream classes support UTF-8 in file paths and file comments, and will autodetect UTF-8 strings to that end, however it is up to the user to ensure that other Multibyte chracter sets aren't sent to the class. TODO: * Add compression level (at least "compress or store") to ZipStream, and to the Large file option on Zip.php * Documentation, no one reads it, but everyone complains if it is missing. * Better examples to fully cover the capabilities of the Zip classes. * more TODO's. |
Files |
File | Role | Description |
---|---|---|
Zip.php | Class | Zip class |
Zip.Example1.php | Example | Example file for generating a download file. |
Zip.Example1a.php | Example | Example file for generating a download file, using the new sendZip method. |
Zip.Example2.php | Example | Example file for generating a zip file and save it on the server. |
Zip.Example3 | Example | Example showing the stream function on Zip.php |
README | Data | Auxiliary data |
Zip.Example3.php | Example | Step version to 1.62 Allow customizing temporary file names Let's allow users to customize temporary files, either by setting Zip::$temp to a custom temporary folder or by setting Zip::$temp to a callable that returns a custom temporary file name. |
Version Control | Reuses | Unique User Downloads | Download Rankings | ||||||||||||||||
71% | 1 |
|
|
User Ratings | User Comments (10) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Other classes that need this package |
Class | Why it is needed | Dependency |
---|---|---|
EPub | ePub's are Zip archives, this class is needed to generate those. Zip is a small, easy to use Zip archive creator. | Required |
Related pages |
Zip and ZipStream on GitHub This project on GitHub |
Donations Optional donations via PayPal. |