2017 © Pedro Peláez
 

library archiver

An abstraction library to interface with file archives.

image

lootils/archiver

An abstraction library to interface with file archives.

  • Monday, April 18, 2016
  • by RobLoach
  • Repository
  • 0 Watchers
  • 4 Stars
  • 249 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Lootils Archiver

An abstraction library to interface with file archives., (*1)

Build Status, (*2)

Installation

Install Lootils Archiver by adding lootils/archiver to your composer.json file., (*3)

{
    "require": {
        "lootils/archiver": "*"
    }
}

Usage

Create a zip file:, (*4)

$archive = \Lootils\Archiver\ZipArchive('myarchive.zip');
$archive->add('myfile.png');

Extract a .tar archive:, (*5)

$archive = \Lootils\Archiver\TarArchive('myarchive.tar');
$archive->extract('destination');

List the contents of a .phar file:, (*6)

$archive = \Lootils\Archiver\PharArchive('myarchive.phar');
$files = $archive->contents();
foreach ($files as $filename => $data) {
    echo $filename . ' ';
}

Dependencies

In order to interact with tar archives, make sure to add pear/archive_tar to your composer.json file., (*7)

Development

To install development tools, run the following:, (*8)

curl -s http://getcomposer.org/installer | php
php composer.phar install

Run tests:, (*9)

phpunit

License

This library is available under a MIT license., (*10)

The Versions

18/04 2016

dev-meta

dev-meta https://github.com/lootils/archiver

An abstraction library to interface with file archives.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

archiver lootils

19/11 2015

dev-master

9999999-dev https://github.com/lootils/archiver

An abstraction library to interface with file archives.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

07/10 2013

0.3.0

0.3.0.0 https://github.com/lootils/archiver

An abstraction library to interface with file archives.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

25/05 2013

0.2.1

0.2.1.0 https://github.com/lootils/archiver

An abstraction library to interface with file archives.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

04/07 2012

0.2

0.2.0.0 https://github.com/lootils/archiver

An abstraction library to interface with file archives.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

03/07 2012

0.1.1

0.1.1.0 https://github.com/lootils/archiver

An abstraction library to interface with file archives.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

03/07 2012

0.1.0

0.1.0.0 https://github.com/lootils/archiver

An abstraction library to interface with file archives.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires