- 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
Fix bug issue #8 - Error if the file is empty.
Merge ZipOutputFile
with ZipFile and optimize the zip archive update.
See the update instructions in README.md.
Features:
- create output object
ZipOutputFile
fromZipFile
in methodZipFile::edit()
. - create output object
ZipOutputFile
from filename in static methodZipOutputFile::openFromFile(string $filename)
.