ZipFile
class ZipFile
Zip file helpers
Methods
static bool
extract(string $file, string $destination, array|string|int|null $files = null)
Extract zip arhive
static string|null
getItemPath(string $zipFile, int $index)
Get zip file item name
static bool
create(string $source, string $destination, array $skipDir = [])
Create zip arhive
static bool
isValid(string $file)
Check if zip arhive is valid
static string|null
getZipError(mixed $resource)
Get zip error
Details
at line 30
static bool
extract(string $file, string $destination, array|string|int|null $files = null)
Extract zip arhive
at line 64
static string|null
getItemPath(string $zipFile, int $index)
Get zip file item name
at line 83
static bool
create(string $source, string $destination, array $skipDir = [])
Create zip arhive
at line 142
static bool
isValid(string $file)
Check if zip arhive is valid
at line 165
static string|null
getZipError(mixed $resource)
Get zip error