Skip to content

Releases: Ne-Lexa/php-zip

4.0.1

12 Dec 10:04
Compare
Choose a tag to compare

Updated third-party dependencies (to support Symfony 6) and added tests on php 8.1.

4.0.0

24 Feb 13:33
Compare
Choose a tag to compare
  • 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 the nelexa/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

11 Jul 21:10
Compare
Choose a tag to compare
  • Improved Windows compatibility #54
  • LICENSE file added

3.3.2

22 Jun 15:21
Compare
Choose a tag to compare

Fixed #58. Virgula a mais nas linhas 85 e 95 no arquivo /.phpstorm.meta.php

3.3.0

04 Feb 09:16
Compare
Choose a tag to compare
  • 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

09 Jan 14:57
Compare
Choose a tag to compare
  • Fixed memory leak.
  • Fixed ZIP64 (large zip files) problem.
  • Added new methods:
    • ZipFile::getEntry()
    • ZipFile::getEntries()
    • ZipFile::addSplFile()
    • ZipFile::addFromFinder()
  • New internal ZipReader and ZipWriter classes
  • Added .phpstorm.meta.php file for auto-completion in PhpStorm
  • ZipFileInterface and ZipInfo are deprecated

Fix #13
Fix #16
Fix #27
Fix #31
Fix #41

3.1.2

30 Dec 08:49
Compare
Choose a tag to compare
  • 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

30 Dec 08:48
Compare
Choose a tag to compare
  • Fix resave zip aligned archive

3.1.0

30 Dec 08:47
Compare
Choose a tag to compare
  • Added class ZipModel for all changes.
  • All manipulations with incoming and outgoing streams are in separate files: ZipInputStream and ZipOutputStream.
  • 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 to ZipFile::setReadPassword
    • rename ZipFile::withNewPassword to ZipFile::setPassword
    • rename ZipFile::withoutPassword to ZipFile::disableEncryption

3.0.3

30 Dec 08:47
Compare
Choose a tag to compare

Fix bug issue #8 - Error if the file is empty.