ticketpark/elibyy-zip

There is no license information available for the latest version (1.0) of this package.

a simple and powerful zip manipulation library

1.0 2017-04-10 08:55 UTC

This package is not auto-updated.

Last update: 2024-11-10 04:01:50 UTC


README

Build Status Docs

This is a fork of https://github.com/elibyy/Zip which was unexpectedly deleted and abandoned without any prior notice.

Elibyy Zip

A Object-Oriented PHP library to manipulate archives

Adapters

this library currently supports

  • zip
  • PHP zip
  • Phar
  • TAR
  • BZIP2
  • GZ

which is the following extensions

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

API Example

 use Elibyy\Reader
 $reader = new Reader('/path/to/file.zip');
 $reader->getFiles(); #will return File[]
 $reader->addFile('/path/to/file.txt','my/inner/path/file.txt'); #will add a file to the archive with path my/inner/path
 $reader->removeFileByName('file.txt');

Documentation hosted at read the docs !