This package can be used to pack and unpack files in ZIP archives.
There is a class that can retrieve the list of packed files as well several types of file details, such as the uncompressed size, last modification time, comments, etc..
The class can extract individual files, one at a time, specifying their file names, or extract all at once into a given directory.
There is another class that can pack files into new ZIP archives.
The classes use the usual PHP file access functions and gzip extension functions.
Allows the creation of tar, gzip, bzip2, and zip archives, and the extraction of tar, gzip, and bzip2. Supports relative paths/no paths, comments, and recursing through subdirectories. Can write file to disk, allow user to download directly, or return file contents in a string or an array. Does not require any external programs to run. PHP must be compiled with '--with-zlib' for gzip and zip and '--with-bzip2' for bzip2. Supports creation of self-extracting zip archives. See readme for full details.