open() open(string $fileName) : bool Open a new zip archive Parameters string $fileName Filename for the zip archive Returns bool —
addFromString() addFromString(string $localname, string $contents) : mixed 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 Returns mixed —
locateName() locateName(string $fileName) : bool Find if given fileName exist in archive (Emulate ZipArchive locateName()) Parameters string $fileName Filename for the file in zip archive Returns bool —
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