PHP code example of takuya / unar-wrapper

1. Go to this page and download the library: Download takuya/unar-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 / unar-wrapper example snippets




ystemUtil\Archiver\UnArchiver;

$sample_zip = 'sample.zip';
$ar = new UnArchiver();
$ar->open($sample_zip);
foreach( $ar->list('*.jpg') as $name => $entry ){
  var_dump([$name,$entry->contents()]);
}

shell
composer