2017 © Pedro Peláez
 

library cabinet

Microsoft Cabinet file extraction wrapper. Uses either cabextract or expand

image

jeevi/cabinet

Microsoft Cabinet file extraction wrapper. Uses either cabextract or expand

  • Thursday, May 17, 2018
  • by jeevi-cao
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Microsoft Cabinet file extraction wrapper.

Microsoft Cabinet file extraction wrapper. Uses either cabextract or expand, (*1)

INSTALLATION

The recommended way to install cabarchive is through Composer:, (*2)

 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:, (*3)

  • list files, lists a Cabinet has files
  • get files content , get a file cotent in Cabint
  • extract cab to assgin dir, (*4)

    #list files $cabFiles = DIR. '/test.cab'; try { $cab = new \Cab\CabArchive($cabFiles); $files = $cab->listFiles(); } catch (\Cab\CabArchiveException $e) { echo $e->getMessage(); }, (*5)

    #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(); }, (*6)

    #extract to dir try { $dst = DIR . '/tmp'; $cab = new CabArchive($cabFiles); $cab->extract(null, $dst); } catch (\Cab\CabArchiveException $e) { echo $e->getMessage(); }, (*7)

The Versions

17/05 2018

dev-master

9999999-dev https://github.com/jeevi-cao/cabinet

Microsoft Cabinet file extraction wrapper. Uses either cabextract or expand

  Sources   Download

Apache-2.0

The Requires

  • php >=5.2.1

 

The Development Requires

expand microsoft cabinet cabextract

17/05 2018

0.1.0

0.1.0.0 https://github.com/jeevi-cao/cabinet

Microsoft Cabinet file extraction wrapper. Uses either cabextract or expand

  Sources   Download

Apache-2.0

The Requires

  • php >=5.2.1

 

The Development Requires

expand microsoft cabinet cabextract