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.
This package can be used to manage archives in the tar, gzip, bzip2 and zip formats.
There is a factory class that can perform several types of actions on packed archive files: create a new archive, retrieve information about the contents of an archive, and extract the files and directories contained in an archive.
The factory class creates objects and calls the function of different classes depending on the file name extension of the archive being manipulated.
This package does not require any external programs to run, but it needs PHP with support to zlib and bzip2 extensions.