open() open(string $fileName) : boolean Open a new zip archive Parameters string $fileName Filename for the zip archive Returns boolean
addFromString() addFromString(string $localname, string $contents) Add a new file to the zip archive from a string of raw data. Parameters string $localname Directory/Name of the file to add to the zip archive string $contents String of data to add to the zip archive
locateName() locateName(string $fileName) : boolean Find if given fileName exist in archive (Emulate ZipArchive locateName()) Parameters string $fileName Filename for the file in zip archive Returns boolean
getFromName() getFromName(string $fileName) : string Extract file from archive by given fileName (Emulate ZipArchive getFromName()) Parameters string $fileName Filename for the file in zip archive Returns string — $contents File string contents