\ZipLib

Summary

Methods
Properties
Constants
ToString()
ZipDirectory()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
folderToZip()
$ZipStatusString
N/A

Properties

$ZipStatusString

$ZipStatusString : 

Type

Methods

ToString()

ToString(  $status) 

Parameters

$status

ZipDirectory()

ZipDirectory(string  $sourcePath, string  $outZipPath) 

Zip a folder (include itself).

http://php.net/manual/en/class.ziparchive.php

Usage: ZipLib::ZipDirectory('/path/to/sourceDir', '/path/to/out.zip');

Parameters

string $sourcePath

Path of directory to be zip.

string $outZipPath

Path of output zip file.

folderToZip()

folderToZip(string  $folder, \ZipArchive  $zipFile, integer  $exclusiveLength) 

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

Parameters

string $folder
\ZipArchive $zipFile
integer $exclusiveLength

Number of text to be exclusived from the file path.