Releases: Ne-Lexa/php-zip
Releases · Ne-Lexa/php-zip
4.0.1
4.0.0
- Dropped PHP 5.5, 5.6, 7.1, 7.2 and 7.3 support.
- Added PHP 8.0 support.
- Declare strict types.
- Dropped
mcrypt
support. - Added
\PhpZip\ZipFile::outputAsSymfonyResponse
method \PhpZip\ZipFile::outputAsResponse
method is declared deprecated and must be replaced by\PhpZip\ZipFile::outputAsPsr7Response
.- [BC break] dropped
zipalign
support. It will be moved to thenelexa/apkfile
package. - [BC break] removed deprecated interface
\PhpZip\ZipFileInterface
. - [BC break] removed deprecated class
\PhpZip\Model\ZipInfo
. - [BC break] removed deprecated methods
\PhpZip\ZipFile::getEntryInfo
,\PhpZip\ZipFile::getAllInfo
,\PhpZip\ZipFile::setZipAlign
, etc. - CI builds moved from Travis to Github Actions.
- Added static analysis of
psalm
.
3.3.3
3.3.2
3.3.0
- Zip entries remain unchanged when writing to class ZipWriter.
- You can override ZipContainer to implement your logic to support a zip-compatible format (for example, APK or EPUB).
- Signature of
ZipFile::extractTo()
method changed. Added parameter&$extractEntries
, which contains information about the extracted files.
3.2.0
- Fixed memory leak.
- Fixed ZIP64 (large zip files) problem.
- Added new methods:
ZipFile::getEntry()
ZipFile::getEntries()
ZipFile::addSplFile()
ZipFile::addFromFinder()
- New internal
ZipReader
andZipWriter
classes - Added .phpstorm.meta.php file for auto-completion in PhpStorm
ZipFileInterface
andZipInfo
are deprecated
3.1.2
- 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 the apksigner library.
Now this field corresponds to the ZIP standard for storing
ExtraField records, and not just filling with zero bytes,
as in the zipalign console utility.
3.1.1
3.1.0
- Added class
ZipModel
for all changes. - All manipulations with incoming and outgoing streams are in separate files:
ZipInputStream
andZipOutputStream
. - Removed class
CentralDirectory
. - Optimized extra fields classes.
- Fixed issue #4 (
count()
returns 0 when files are added in directories). - Implemented issue #8 - support inline Content-Disposition and empty output filename.
- Optimized and tested on a php 32-bit platform (issue #5).
- Added output as PSR-7 Response.
- Added methods for canceling changes.
- Added russian documentation.
- Updated documentation.
- Declared deprecated methods:
- rename
ZipFile::withReadPassword
toZipFile::setReadPassword
- rename
ZipFile::withNewPassword
toZipFile::setPassword
- rename
ZipFile::withoutPassword
toZipFile::disableEncryption
- rename