PHP Class DirZip

Author: umbalaconmeogia at NOSPAM dot gmail dot com
Afficher le fichier Open project: codiad/codiad Class Usage Examples

Méthodes publiques

Méthode Description
zipDir ( string $sourcePath, string $outZipPath ) Zip a folder (include itself).

Private Methods

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

Method Details

zipDir() public static méthode

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.