承接 nguyenanhung/zip-helper 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

nguyenanhung/zip-helper

最新稳定版本:v2.0.1

Composer 安装命令:

composer require nguyenanhung/zip-helper

包简介

PHP Zip Helper - Basic, Simple and Lightweight

README 文档

README

Latest Stable Version Total Downloads Daily Downloads Monthly Downloads License PHP Version Require

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 Email Skype Facebook
Hung Nguyen dev@nguyenanhung.com nguyenanhung5891 @nguyenanhung

From Vietnam with Love <3

统计信息

  • 总下载量: 26.21k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-09-23