ZipService
Service that handles zip creation and extraction
Table of Contents
Methods
- extract() : bool
- Extracts the zip archive to a given directory. This method makes sure a file cannot be placed outside the directory.
- verify() : bool
Methods
extract()
Extracts the zip archive to a given directory. This method makes sure a file cannot be placed outside the directory.
public
extract(string $fileName, string $directory) : bool
Parameters
- $fileName : string
- $directory : string
Tags
Return values
boolverify()
public
verify(string $fileName) : bool
Parameters
- $fileName : string