nguyenanhung/zip-helper
最新稳定版本:v2.0.1
Composer 安装命令:
composer require nguyenanhung/zip-helper
包简介
PHP Zip Helper - Basic, Simple and Lightweight
README 文档
README
Zip Helper
PHP Zip Helper - Basic, Simple and Lightweight
Version
- V1.x support all PHP version
>=5.6 - V2.x support all PHP version
>=7.0
How to use
Setup helper
Install helper with Composer
composer require nguyenanhung/zip-helper
Code
You can write your app, and see example code same bellow
<?php use nguyenanhung\Libraries\Zip\Zip; require_once __DIR__ . '/vendor/autoload.php'; $fileTest = __DIR__ . '/tmp/test-file.zip'; $zip = new Zip(); $zip->setFilename($fileTest); $zip->setDataList( array( __DIR__ . '/docs', // Your Path __DIR__ . '/docs/README.md' // Your file ) ); // Compress with ZIP $result = $zip->zip(); // Add all data in $dataList to $filename d($result); d(directory_map(__DIR__ . '/tmp')); // Extract Zip file $zip->setExtractFolder(__DIR__ . '/tmp'); $extract = $zip->unzip(); d($extract); d(directory_map(__DIR__ . '/tmp'));
Contact & Support
If any question & request, please contact following information
| Name | Skype | ||
|---|---|---|---|
| Hung Nguyen | dev@nguyenanhung.com | nguyenanhung5891 | @nguyenanhung |
From Vietnam with Love <3
统计信息
- 总下载量: 26.21k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-09-23