Skip to content

zhouyl/Archive-Compress-for-PHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#Archive Compress for PHP

###文档压缩/解压抽象类

// 创建 ZIP 压缩文件
$zip = new Archive_Zip();
$zip->setArchive('zip_compress.zip') // 指定输出的文件名
    ->compress('/var/compress_path'); // 压缩指定的目录到 ZIP

// 创建解压缩目录
mkdir("/var/decompress_path", 7770);

// 解压缩 ZIP 文件
$zip = new Archive_Zip();
$zip->setTarget('/var/decompress_path') // 解压到指定目录
    ->decompress('zip_compress.zip'); // 解压指定文件

About

PHP文档压缩&解压缩

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages