Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/takuya/php-unar-wrapper
https://github.com/takuya/php-unar-wrapper
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/takuya/php-unar-wrapper
- Owner: takuya
- License: gpl-3.0
- Created: 2021-03-02T08:34:19.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-06-29T16:21:07.000Z (over 2 years ago)
- Last Synced: 2024-10-13T18:53:10.849Z (about 1 month ago)
- Language: PHP
- Size: 7.24 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# php-unar-wrapper
![](https://circleci.com/gh/takuya/php-unar-wrapper.svg?style=svg)
## 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
```shell
composer require takuya/php-unar-wrapper
```## How to use
```php
open($sample_zip);
foreach( $ar->list('*.jpg') as $name => $entry ){
var_dump([$name,$entry->contents()]);
}?>
```## requirement
UnArchiver commad line tools.
```shell
sudo apt install unar
```## More samples.
See [samples/](https://github.com/takuya/php-unar-wrapper/tree/master/samples) in repositry.