abstract class Standart

Properties

protected $compressor

Compressor instance

protected $filepath

Location of source file

protected array $filepathInfo

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

protected $resource

An object of compressor stream file

protected $uniquePath

Randome string of file path

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(string $newDestination)

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

getFilePathInfo()

No description

getUniquePath()

No description

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

No description

Details

at line 45
abstract protected open(int $flag = 0)

An method to make stream file by compressor

Parameters

int $flag

at line 50
abstract protected close()

Close compressor stream

at line 57
abstract protected create(Closure $callback)

Create some archvie file based on callback

Parameters

Closure $callback

at line 62
abstract protected extract()

Extract an existing archive file

at line 69
abstract protected to(string $newDestination)

Move exstracting file to new destination

Parameters

string $newDestination

at line 77
abstract protected bool isCompressorExists()

Method to check if compressor exstension is exist or not

Return Value

bool

at line 85
abstract protected addFile(string $filepath, string $newFilePath = '')

Add file to a new/existing archive

Parameters

string $filepath
string $newFilePath

at line 93
abstract protected addFileToDirectory(string $directoryName, string $filepath)

Add file into a folder in a new/existing archive

Parameters

string $directoryName
string $filepath

at line 95
getFilePath()

No description

at line 100
getFilePathInfo()

No description

at line 105
getUniquePath()

No description

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

No description

Parameters

string $path
int $mode
bool $recursive