Download the PHP package victor78/zippy-ext without Composer
On this page you can find all versions of the php package victor78/zippy-ext. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package zippy-ext
ZippyExt
ZippyExt (aka ZippyExtended) is a library extended over Zippy providing the strategy and adapter for using 7-Zip, including password support.
Requirements
- PHP >= 8.1
- 7-Zip (
7zaor7zinPATH) — required only for 7zip adapter
PHP Compatibility
| ZippyExt | PHP |
|---|---|
| 1.x | 8.1–8.3 |
| 0.x | 7.0+ |
Installation
The only supported installation method is via Composer. Run the following command to require ZippyExt in your project:
Adapters
ZippyExt currently supports the following drivers and file formats:
- zip
- .zip
- PHP zip extension
- .zip
- GNU tar
- .tar
- .tar.gz
- .tar.bz2
- BSD tar
- .tar
- .tar.gz
- .tar.bz2
- 7zip
- .zip (with optional AES-256 password encryption)
Getting started
All the following code samples assume that ZippyExt is loaded and available as $zippy. You need the following code (or variation of) to load ZippyExt:
List an archive's contents:
Extract an archive to a specific directory:
Create a new archive
Use 7zip
If you need to use 7zip archiving to create a zip archive, use the fourth parameter:
To create an AES-256 encrypted archive, pass the password as the fifth parameter:
To open and extract a password-protected 7zip archive:
Known Limitations
- Password protection is only supported with the 7zip adapter. Standard zip and tar adapters ignore the password parameter.
extractMembers()is not supported for the 7zip adapter (useextract()instead)..zipis ambiguous: by default,open('file.zip')may resolve to standard zip strategy. If you need 7zip-specific behavior (including password flow), pass type explicitly:open('file.zip', '7zip', 'your_password').
Documentation
Documentation in English and Russian is available in the wiki.
License
This project is licensed under the MIT license.