1. Go to this page and download the library: Download takuya/php-7z-cmd-wrapper library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
takuya / php-7z-cmd-wrapper example snippets
$a7z = new Archive7zReader("sample.zip");
foreach( $a7z->files() as $name) {
$bin = $a7z->conent($name);
}
$a7z = new Archive7zReader("sample.zip");
$bin = $a7z->at(0);