mlb0925/zipconverter

This library was written to simplify and automate Zip files management using PHP ZipArchive.

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/mlb0925/zipconverter

dev-master 2023-08-17 12:51 UTC

This package is auto-updated.

Last update: 2025-09-17 17:18:11 UTC


README

composer require mlb0925/zipconverter

使用方法

$zip = new \Mlb0925\zipConverter();
$zip->setRecursiveness(true); //default is false
$zip->addFolder(
    array(
        './', //path of the current file
        'F:\wamp2\www\yml', //Windows Path
        '/var/www/html'  //linux path
    )
);
$zip->setZipPath('./files.zip'); //Set your Zip Path with your Zip File's Name
$result = $zip->createArchive();

echo "<pre>";var_dump($result);echo "</pre>";