Yii 2.0: unified-archive

UnifiedArchive - unified interface to archive for listing, reading, extracting and creation.
3 followers

If on your site there is a possibility of uploading of archives and you would like to add functionality of their automatic unpacking and viewing with no dependency on format of the archive, you can use this library.

Short description of UnifiedArchive library:

UnifiedArchive - unified interface to archive (zip # 7z # rar # gz # bz2 # xz # tar # tar.gz # tar.bz2 # tar.xz # tar.Z # iso-9660) for listing, reading, extracting and creation + built-in console packer and unpacker + fully implemented PclZip-like interface (create, listContent, extract, properties, add, delete, merge, duplicate).

Installation

  • Composer package - wapmorgan/unified-archive [1]
  • Latest release - 0.0.6 changelog
  • Development branch - dev-master

>>> Installation instructions. <<<

Requirements

Supported archive types:

  1. rar RAR extension
  2. 7z gemorroj/archive7z
  3. zip ZIP extension
  4. gz ZLIB extension
  5. bz2 BZ2 extension
  6. xz XZ extension
  7. tar without and with compression. Compression methods:
    • gzip (.tar.gz) ZLIB extension
    • bzip(.tar.bz2) BZIP extension
    • lzma2 (.tar.xz) XZ extension
    • lzw (.tar.Z) ncompress
  8. iso-9660 phpclasses/php-iso-file

Usage

>>> RIGHT HERE. <<<

Resources

Changelog

0.0.6

Added:

  • Adding files in archive.
  • Deleting files from archive.

Fixed:

  • Fixed discovering 7z archive number of files and creating new archive.

0.0.5

Added:

  • Support for 7z (7zip) archives.

0.0.4

Added:

  • Support for single-file bz2 (bzip2) and xz (lzma2) archives.

0.0.3

Changed:

  • archive_tar is no longer a required package, now it is a suggestion.

0.0.2

  • UnifiedArchive released under the MIT license.

0.0.1

first release

Composer

The preferred way to install this extension is through composer.

Either run:

$ php composer.phar require wapmorgan/unified-archive "0.0.6"

or add:

"wapmorgan/unified-archive": "0.0.6"

to the require section of your composer.json file.

Be the first person to leave a comment

Please to leave your comment.

Create extension