2017 © Pedro Peláez
 

library pop-archive

Pop Archive Component for PHP Framework

image

popphp/pop-archive

Pop Archive Component for PHP Framework

  • Thursday, March 2, 2017
  • by nicksagona
  • Repository
  • 1 Watchers
  • 2 Stars
  • 628 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 1 % Grown

The README.md

pop-archive

END OF LIFE

The pop-archive component v2.1.1 is now end-of-life and will no longer be maintained., (*1)

Build Status Coverage Status, (*2)

OVERVIEW

pop-archive provides a normalized interface and integrated adapters to let a user decompress, extract, package and compress files in a common archive format. The supported formats are:, (*3)

  • tar
  • tar.gz
  • tar.bz2
  • zip

pop-archive is a component of the Pop PHP Framework., (*4)

INSTALL

Install pop-archive using Composer., (*5)

composer require popphp/pop-archive

BASIC USAGE

Extract a zip archive

$archive = new Pop\Archive\Archive('test.zip');
$archive->extract('/path/to/extract/files');

Extract a tar.gz archive

// It will auto-detect and automatically decompress a compressed TAR file
$archive = new Pop\Archive\Archive('test.tar.gz');
$archive->extract('/path/to/extract/files');

Add files to a zip archive

$archive = new Pop\Archive\Archive('test.zip');
$archive->addFiles('/path/to/single/file.txt');
$archive->addFiles([
    '/path/to/multiple/files1.txt',
    '/path/to/multiple/files2.txt',
    '/path/to/multiple/files3.txt',
]);

Add files to a tar archive and compress

$archive = new Pop\Archive\Archive('test.tar');
$archive->addFiles('/path/to/folder/of/files');

// Creates the compressed archive file 'test.tar.bz2'
$archive->compress('bz2');

The Versions

02/03 2017

dev-master

9999999-dev http://www.popphp.org/

Pop Archive Component for PHP Framework

  Sources   Download

New BSD

The Requires

 

The Development Requires

php zip archive tar rar pop pop php

02/03 2017

2.1.1p1

2.1.1.0-patch1 http://www.popphp.org/

Pop Archive Component for PHP Framework

  Sources   Download

New BSD

The Requires

 

The Development Requires

php zip archive tar rar pop pop php

08/07 2016

2.1.1

2.1.1.0 http://www.popphp.org/

Pop Archive Component for PHP Framework

  Sources   Download

New BSD

The Requires

 

The Development Requires

php zip archive tar rar pop pop php

01/07 2016

2.1.0

2.1.0.0 http://www.popphp.org/

Pop Archive Component for PHP Framework

  Sources   Download

New BSD

The Requires

 

The Development Requires

php zip archive tar rar pop pop php

10/05 2016

2.0.0p2

2.0.0.0-patch2 http://www.popphp.org/

Pop Archive Component for PHP Framework

  Sources   Download

New BSD

The Requires

 

The Development Requires

php zip archive tar rar pop pop php

19/02 2016

2.0.0p1

2.0.0.0-patch1 http://www.popphp.org/

Pop Archive Component for PHP Framework

  Sources   Download

New BSD

The Requires

 

The Development Requires

php zip archive tar rar pop pop php

16/07 2015

2.0.0

2.0.0.0 http://www.popphp.org/

Pop Archive Component for PHP Framework

  Sources   Download

New BSD

The Requires

 

The Development Requires

php zip archive tar rar pop pop php