Registry / utility / nelexa-zip

nelexa-zip

JSON →
library4.0.2phppackagistunverified

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.

composer require nelexa/zip
INSTALL
IMPORT
SIG · NELEXA-ZIP
N
nelexa-zip
utilityphpv4.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ZipFile
use PhpZip\ZipFile;

Create a ZIP archive by adding a file and saving it.

use PhpZip\ZipFile; $zipFile = new ZipFile(); $zipFile->addFile('/path/to/file.txt', 'file.txt') ->saveAsFile('/path/to/output.zip') ->close();
Debug
Known issues
breakingRequires PHP 7.4 or higher for version 4.x
fix
Upgrade PHP to 7.4+ or use version 3.x which supports PHP 7.1+
affects: >=4.0.0
Upgrade
Version history
4.0.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
nelexa-zip — pip install nelexa-zip · libregistry