A simple archive handler in PHP
Simply add this package to your composer.json
composer require chindit/archive
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');
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.