PHP Class DirZip

Author: umbalaconmeogia at NOSPAM dot gmail dot com
Datei anzeigen Open project: codiad/codiad Class Usage Examples

Public Methods

Method Description
zipDir ( string $sourcePath, string $outZipPath ) Zip a folder (include itself).

Private Methods

Method Description
folderToZip ( string $folder, ZipArchive &$zipFile, integer $exclusiveLength ) Add files and sub-directories in a folder to zip file.

Method Details

zipDir() public static method

Usage: DirZip::zipDir('/path/to/sourceDir', '/path/to/out.zip');
public static zipDir ( string $sourcePath, string $outZipPath )
$sourcePath string Path of directory to be zip.
$outZipPath string Path of output zip file.