ZipTool
in package
Table of Contents
Methods
- fileToZip() : string|bool
- Creates a zip file based on one or more files using Ne-Lexa/php-zip library
Methods
fileToZip()
Creates a zip file based on one or more files using Ne-Lexa/php-zip library
public
static fileToZip(array<string|int, mixed> $files, string $outputName) : string|bool
Parameters
- $files : array<string|int, mixed>
-
- array containing the files to be zipped
- $outputName : string
-
- the name of the zip file to be generated
Tags
Return values
string|bool —the path to the zip file to be generated