class HZip

Methods

static 
folderToZip($folder, $zipFile, $exclusiveLength, $exclude = array('.git'), $prefix = '')

Add files and sub-directories in a folder to zip file.

static 
zipDir($sourcePath, $outZipPath, $exclude = array('.git'))

Zip a folder (include itself).

Details

at line 13
static folderToZip($folder, $zipFile, $exclusiveLength, $exclude = array('.git'), $prefix = '')

Add files and sub-directories in a folder to zip file.

Parameters

$folder
$zipFile
$exclusiveLength
$exclude
$prefix

at line 44
static zipDir($sourcePath, $outZipPath, $exclude = array('.git'))

Zip a folder (include itself).

Usage: HZip::zipDir('/path/to/sourceDir', '/path/to/out.zip');

Parameters

$sourcePath
$outZipPath
$exclude