ZipService

Service that handles zip creation and extraction

Internal

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
throws
ExtractException
Return values
bool

verify()

public verify(string $fileName) : bool
Parameters
$fileName : string
Tags
throws
ExtractException
Return values
bool

        
On this page

Search results