dasest404 / component-decompress

Decompress files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Matomo/Decompress

Component providing several adapters to decompress files.

Build Status

It supports the following compression formats:

  • Zip
  • Gzip
  • Tar (gzip or bzip)

With the following adapters:

Installation

With Composer:

{
    "require": {
        "matomo/decompress": "*"
    }
}

Usage

All adapters have the same API as they implement Matomo\Decompress\DecompressInterface:

$extractor = new \Matomo\Decompress\Gzip('file.gz');

$extractedFiles = $extractor->extract('some/directory');

if ($extractedFiles === 0) {
    echo $extractor->errorInfo();
}

License

The Decompress component is released under the LGPL v3.0.

About

Decompress files

License:GNU Lesser General Public License v3.0


Languages

Language:PHP 100.0%