定制 jeevi/cabinet 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

jeevi/cabinet

Composer 安装命令:

composer require jeevi/cabinet

包简介

Microsoft Cabinet file extraction wrapper. Uses either cabextract or expand

README 文档

README

Microsoft Cabinet file extraction wrapper. Uses either cabextract or expand

INSTALLATION

The recommended way to install cabarchive is through Composer:

 composer require jeevi/cabinet

REQUIREMENTS

  • PHP 5.2.1 or above
  • expand.exe has been installed on windows
  • cabextract has been installed on Linux, and it's on /usr/bin dir

QUICK START

Microsoft Cabinet file extraction wrapper. Uses either cabextract or expand, it's has this functions:

  • list files, lists a Cabinet has files

  • get files content , get a file cotent in Cabint

  • extract cab to assgin dir

     #list files
     $cabFiles = __DIR__. '/test.cab';
     try {
         $cab = new \Cab\CabArchive($cabFiles);
         $files = $cab->listFiles();
     } catch (\Cab\CabArchiveException $e) {
         echo $e->getMessage();
     }
    
     #get a file cotent
     try {
         $cab = new CabArchive($cabFiles);
         $fileconent= $cab->extract('360av_linux_server_baseline.ini');
      } catch (\Cab\CabArchiveException $e) {
           echo $e->getMessage();
     }
     #get multi files content it's ruturn array
     try {
         $cab = new CabArchive($cabFiles);
         $fileconent= $cab->extract('360av_linux_server_baseline.ini');
     } catch (\Cab\CabArchiveException $e) {
          echo $e->getMessage();
     }
    
     #extract to dir
      try {
           $dst = __DIR__ . '/tmp';
           $cab = new CabArchive($cabFiles);
           $cab->extract(null, $dst);
      } catch (\Cab\CabArchiveException $e) {
         echo $e->getMessage();
      }
    

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2018-05-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固