\PhpOffice\Common\Adapter\ZipZipInterface

Summary

Methods
Constants
open()
close()
addFromString()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

open()

open(string  $filename) : $this

Open a ZIP file archive

Parameters

string $filename

Throws

\Exception

Returns

$this

close()

close() : $this

Close the active archive (opened or newly created)

Throws

\Exception

Returns

$this

addFromString()

addFromString(string  $localname, string  $contents) : $this

Add a file to a ZIP archive using its contents

Parameters

string $localname

The name of the entry to create.

string $contents

The contents to use to create the entry. It is used in a binary safe mode.

Throws

\Exception

Returns

$this