Documentation

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
see
https://github.com/Ne-Lexa/php-zip
  • Requires Zip PHP extention, you can check it out by running the following command: 'php -m'
Return values
string|bool

the path to the zip file to be generated


        
On this page

Search results