questlab/www/analytics/vendor/piwik/decompress/README.md
2016-04-10 18:55:57 +02:00

1.5 KiB

Piwik/Decompress

Component providing several adapters to decompress files.

Build Status Coverage Status Scrutinizer Code Quality

It supports the following compression formats:

  • Zip
  • Gzip
  • Tar (gzip or bzip)

With the following adapters:

Installation

With Composer:

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

Usage

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

$extractor = new \Piwik\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.