chindit / archive
A simple handler to extract any type of archive
Installs: 64
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/chindit/archive
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.