Skip to content

takuya/php-unar-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-unar-wrapper

<ORG_NAME>

Unarchive command line tools wrapper

no compress, only for extract. but many formats can use.

Why this package written.

To deal in same way several archive formats ( zip/tar/rar ).

support formats.

depends on unar ( Unarvhive command line tool ).

zip / rar(winrar) / tar.gz works fine.

Installing

composer require takuya/php-unar-wrapper

How to use

<?php

require_once 'vendor/autoload.php';

use SystemUtil\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()]);
}

?>

requirement

UnArchiver commad line tools.

sudo apt install unar

More samples.

See samples/ in repositry.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages