Zip
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
An method to make stream file by compressor
Close compressor stream
Extract an existing archive file
Move exstracting file to new destination
Method to check if compressor exstension is exist or not
Add file to a new/existing archive
Add file into a folder in a new/existing archive
No description
No description
Details
at line 30
open(int $flag = 0)
An method to make stream file by compressor
at line 93
close()
Close compressor stream
at line 36
create(Closure $callback)
Create some archvie file based on callback
at line 42
extract()
Extract an existing archive file
at line 68
to($newDestionation)
Move exstracting file to new destination
at line 88
bool
isCompressorExists()
Method to check if compressor exstension is exist or not
at line 53
addFile(string $filepath, string $newFilePath = '')
Add file to a new/existing archive
at line 58
addFileToDirectory(string $directoryName, string $filepath)
Add file into a folder in a new/existing archive
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
at line 20
__construct(string $filepath)
No description