d9magai/phparchive

Wrapper of ZipArchive class.


Keywords
zip, tar, bzip
License
MIT

Documentation

PHPArchive

Wrapper of ZipArchive class.

API Example

use D9magai\Zip\TmpArchive;

// create TmpArchive
$tmpArchive = TmpArchive(new \ZipArchive(), __DIR__ . '/tmp');
// add file to tmpArchive
$tmpArchive->addFile($filePath);
// saving tmpArchive
$tmpArchive->save();
// get tmpArchive path
$zipPath = $tmpArchive->getPath();

##License

This project is licensed under the MIT license.