class Zip extends Standart

Properties

protected $compressor

Compressor instance

from  Standart
protected $filepath

Location of source file

from  Standart
protected array $filepathInfo

Rinch info about source file such as exstension, dirname etc.

from  Standart
protected $resource

An object of compressor stream file

from  Standart
protected $uniquePath

Methods

open(int $flag = 0)

An method to make stream file by compressor

close()

Close compressor stream

create(Closure $callback)

Create some archvie file based on callback

extract()

Extract an existing archive file

to($newDestionation)

Move exstracting file to new destination

bool
isCompressorExists()

Method to check if compressor exstension is exist or not

addFile(string $filepath, string $newFilePath = '')

Add file to a new/existing archive

addFileToDirectory(string $directoryName, string $filepath)

Add file into a folder in a new/existing archive

getFilePath()

No description

from  Standart
getFilePathInfo()

No description

from  Standart
getUniquePath()

No description

from  Standart
createDirIfnotExists(string $path, int $mode = 0755, bool $recursive = true)

No description

from  Standart
__construct(string $filepath)

No description

Details

at line 30
open(int $flag = 0)

An method to make stream file by compressor

Parameters

int $flag

at line 93
close()

Close compressor stream

at line 36
create(Closure $callback)

Create some archvie file based on callback

Parameters

Closure $callback

at line 42
extract()

Extract an existing archive file

at line 68
to($newDestionation)

Move exstracting file to new destination

Parameters

$newDestionation

at line 88
bool isCompressorExists()

Method to check if compressor exstension is exist or not

Return Value

bool

at line 53
addFile(string $filepath, string $newFilePath = '')

Add file to a new/existing archive

Parameters

string $filepath
string $newFilePath

at line 58
addFileToDirectory(string $directoryName, string $filepath)

Add file into a folder in a new/existing archive

Parameters

string $directoryName
string $filepath

in Standart at line 95
getFilePath()

No description

in Standart at line 100
getFilePathInfo()

No description

in Standart at line 105
getUniquePath()

No description

in Standart at line 110
protected createDirIfnotExists(string $path, int $mode = 0755, bool $recursive = true)

No description

Parameters

string $path
int $mode
bool $recursive

at line 20
__construct(string $filepath)

No description

Parameters

string $filepath