chindit / archive
A simple handler to extract any type of archive
0.1.1
2022-04-24 15:03 UTC
Requires
- php: >=8.0.2
- symfony/filesystem: ^6.0
- symfony/http-foundation: ^6.0
- symfony/mime: ^6.0
- symfony/process: ^6.0
Requires (Dev)
- phpstan/phpstan: ^1.5
- phpunit/phpunit: ^9.5
README
A simple archive handler in PHP
Installation
Simply add this package to your composer.json
composer require chindit/archive
Usage
Usage is really simple.
Just call the extract
method of the Archive
class, and that's it.
$isExtractionSuccessful = Chindit\Archive::extract('/path/to/my/archive.zip', '/path/to/extract');
Supported formats
At the moment, only ZIP, TAR, TAR.GZ, TAR.BZ2 and RAR are supported.
Please note that you need either php-rar
extension or unrar
binary available on your system in order to process .rar
files.