7z libraries for PHP
PHP has no 7z support in its extensions (ZipArchive handles ZIP, PharData handles TAR and ZIP) and there is no pure-PHP 7z implementation. The practical choice is a wrapper around the 7-Zip program:
- Archive7z (
gemorroj/archive7z) runs the7z/7zzcommand through Symfony Process. It lists, reads, extracts, creates and modifies 7z archives with everything 7-Zip supports, including passwords and encrypted file names. 7-Zip must be installed on the server andproc_openmust be allowed.
- Archive7z Archive7z is a PHP wrapper of the 7-Zip command line for reading and writing 7z archives. How to install it, list, read and extract 7z files, create archives.