NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #1686 most downloaded on Packagist
PhpZip is a php-library for extended work with ZIP-archives. Open, create, update, delete, extract and get info tool. Supports appending to existing ZIP files, WinZip AES encryption, Traditional PKWARE Encryption, BZIP2 compression, external file attributes and ZIP64 extensions. Alternative ZipArchive. It does not require php-zip extension.
Latest stable
4.1.0
Last release 17 days ago
05 Nov 2026
Ships unpredictably
gaps range from 2 weeks to 4.4 years
Some releases are documented
notes for 17 of 39 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
40 releases · first in 2016
Drag across the ruler to compare, or tap a release to open it.
Symlink targets that resolve outside the extraction directory are now skipped instead of created (same bug class as CVE-2024-12718 in CPython).
First release in four years - the project is maintained again.
ZipFile::extractTo() (#100). Entry names are now split on both / and \, and drive-relative, UNC and stream-wrapper style names are rejected with a ZipException.extractTo() with ZipOptions::EXTRACT_SYMLINKS (#101). Symlink targets that resolve outside the extraction directory are now skipped instead of created (same bug class as CVE-2024-12718 in CPython).ZipException uniformly.psr/http-message 2.0 (PSR-7 v2 added native return types to StreamInterface).guzzlehttp/psr7 bumped to ^2.0 (v1 is blocked by the composer security advisory policy).symfony/finder and symfony/http-foundation constraints pinned to ^5.4 || ^6.0 || ^7.0 || ^8.0.Full changelog: https://github.com/Ne-Lexa/php-zip/compare/4.0.2...4.1.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
4.1.0 Latest
Latest
Compare
Tagging version 4.0.2 4.0.2
Tagging version 4.0.2 4.0.2
Updated third-party dependencies (to support Symfony 6) and added tests on php 8.1.
Updated third-party dependencies (to support Symfony 6) and added tests on php 8.1.
\PhpZip\ZipFile::outputAsResponse method is declared deprecated and must be replaced by \PhpZip\ZipFile::outputAsPsr7Response.
mcrypt support.\PhpZip\ZipFile::outputAsSymfonyResponse method\PhpZip\ZipFile::outputAsResponse method is declared deprecated and must be replaced by \PhpZip\ZipFile::outputAsPsr7Response.zipalign support. It will be moved to the nelexa/apkfile package.\PhpZip\ZipFileInterface.\PhpZip\Model\ZipInfo.\PhpZip\ZipFile::getEntryInfo, \PhpZip\ZipFile::getAllInfo, \PhpZip\ZipFile::setZipAlign, etc.psalm.Improved Windows compatibility #54
Fixed #58. Virgula a mais nas linhas 85 e 95 no arquivo /.phpstorm.meta.php
Fixed #58. Virgula a mais nas linhas 85 e 95 no arquivo /.phpstorm.meta.php
Tagging version 3.3.1 3.3.1
Tagging version 3.3.1 3.3.1
Zip entries remain unchanged when writing to class ZipWriter.
ZipFile::extractTo() method changed. Added parameter &$extractEntries, which contains information about the extracted files.Nothing published for this version
Tagging hotfix 3.2.2 3.2.2
Tagging hotfix 3.2.2 3.2.2
Tagging hotfix 3.2.1 3.2.1
Tagging hotfix 3.2.1 3.2.1
ZipFileInterface and ZipInfo are deprecated
ZipFile::getEntry()ZipFile::getEntries()ZipFile::addSplFile()ZipFile::addFromFinder()ZipReader and ZipWriter classesZipFileInterface and ZipInfo are deprecatedFix #13 Fix #16 Fix #27 Fix #31 Fix #41
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Changed the algorithm for adding paddings to zipalign. Now we will use the special field ExtraField c ID 0xD935, which was implemented by Google in th
- Fix resave zip aligned archive
Added class ZipModel for all changes.
ZipModel for all changes.ZipInputStream and ZipOutputStream.CentralDirectory.count() returns 0 when files are added in directories).ZipFile::withReadPassword to ZipFile::setReadPasswordZipFile::withNewPassword to ZipFile::setPasswordZipFile::withoutPassword to ZipFile::disableEncryptionFix bug issue #8 - Error if the file is empty.
Fix bug issue #8 - Error if the file is empty.
Nothing published for this version
Nothing published for this version
Merge ZipOutputFile with ZipFile and optimize the zip archive update.
Merge ZipOutputFile with ZipFile and optimize the zip archive update.
See the update instructions in README.md.
create output object ZipOutputFile from ZipFile in method ZipFile::edit().
Features:
ZipOutputFile from ZipFile in method ZipFile::edit().ZipOutputFile from filename in static method ZipOutputFile::openFromFile(string $filename).Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.