List Of ZipArchive class & Zip Functions in PHP

The ZipArchive class

  • addEmptyDir — Add a new directory
  • addFile — Adds a file to a ZIP archive from the given path
  • addFromString — Add a file to a ZIP archive using its contents
  • addGlob — Add files from a directory by glob pattern
  • addPattern — Add files from a directory by PCRE pattern
  • close — Close the active archive (opened or newly created)
  • count — Counts the number of files in the archive
  • deleteIndex — Delete an entry in the archive using its index
  • deleteName — Delete an entry in the archive using its name
  • extractTo — Extract the archive contents
  • getArchiveComment — Returns the Zip archive comment
  • getCommentIndex — Returns the comment of an entry using the entry index
  • getCommentName — Returns the comment of an entry using the entry name
  • getExternalAttributesIndex — Retrieve the external attributes of an entry defined by its index
  • getExternalAttributesName — Retrieve the external attributes of an entry defined by its name
  • getFromIndex — Returns the entry contents using its index
  • getFromName — Returns the entry contents using its name
  • getNameIndex — Returns the name of an entry using its index
  • getStatusString — Returns the status error message, system and/or zip messages
  • getStream — Get a file handler to the entry defined by its name (read only)
  • isCompressionMethodSupported — Check if a compression method is supported by libzip
  • isEncryptionMethodSupported — Check if a encryption method is supported by libzip
  • locateName — Returns the index of the entry in the archive
  • open — Open a ZIP file archive
  • registerCancelCallback — Register a callback to allow cancellation during archive close.
  • registerProgressCallback — Register a callback to provide updates during archive close.
  • renameIndex — Renames an entry defined by its index
  • renameName — Renames an entry defined by its name
  • replaceFile — Replace file in ZIP archive with a given path
  • setArchiveComment — Set the comment of a ZIP archive
  • setCommentIndex — Set the comment of an entry defined by its index
  • setCommentName — Set the comment of an entry defined by its name
  • setCompressionIndex — Set the compression method of an entry defined by its index
  • setCompressionName — Set the compression method of an entry defined by its name
  • setEncryptionIndex — Set the encryption method of an entry defined by its index
  • setEncryptionName — Set the encryption method of an entry defined by its name
  • setExternalAttributesIndex — Set the external attributes of an entry defined by its index
  • setExternalAttributesName — Set the external attributes of an entry defined by its name
  • setMtimeIndex — Set the modification time of an entry defined by its index
  • setMtimeName — Set the modification time of an entry defined by its name
  • setPassword — Set the password for the active archive
  • statIndex — Get the details of an entry defined by its index
  • statName — Get the details of an entry defined by its name
  • unchangeAll — Undo all changes done in the archive
  • unchangeArchive — Revert all global changes done in the archive
  • unchangeIndex — Revert all changes done to an entry at the given index
  • unchangeName — Revert all changes done to an entry with the given name

Zip Functions

  • zip_close — Close a ZIP file archive
  • zip_entry_close — Close a directory entry
  • zip_entry_compressedsize — Retrieve the compressed size of a directory entry
  • zip_entry_compressionmethod — Retrieve the compression method of a directory entry
  • zip_entry_filesize — Retrieve the actual file size of a directory entry
  • zip_entry_name — Retrieve the name of a directory entry
  • zip_entry_open — Open a directory entry for reading
  • zip_entry_read — Read from an open directory entry
  • zip_open — Open a ZIP file archive
  • zip_read — Read next entry in a ZIP file archive

No Comments Yet