1
0
mirror of https://github.com/Ne-Lexa/php-zip.git synced 2025-08-30 18:30:02 +02:00

Add support set zip alignment (alternative zipalign tool)

This commit is contained in:
Ne-Lexa
2016-09-26 16:56:06 +03:00
parent cf7f98b7c9
commit f0d90da75c
5 changed files with 110 additions and 12 deletions

View File

@@ -2,7 +2,7 @@
================
`PhpZip` - is to create, update, opening and unpacking ZIP archives in pure PHP.
The library supports `ZIP64`, `Traditional PKWARE Encryption` and `WinZIP AES Encryption`.
The library supports `ZIP64`, `zipalign`, `Traditional PKWARE Encryption` and `WinZIP AES Encryption`.
The library does not require extension `php-xml` and class `ZipArchive`.
@@ -415,6 +415,11 @@ while ($iterator->valid())
$iterator->next();
}
```
Set zip alignment (alternate program `zipalign`).
```php
// before save or output
$zipOutputFile->setAlign(4); // alternative cmd: zipalign -f -v 4 filename.zip
```
Close zip archive.
```php
$zipOutputFile->close();