Decompress files
Switch branches/tags
Nothing to show
Clone or download
sgiehl Merge pull request #13 from cb8/php72
Run tests with PHP 7.2
Latest commit 82e2c95 Feb 12, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
libs full rename Piwik -> Matomo Jan 29, 2018
src full rename Piwik -> Matomo Jan 29, 2018
tests full rename Piwik -> Matomo Jan 29, 2018
.gitignore Run tests with PHP 7.2 Feb 11, 2018
.travis.yml Run tests with PHP 7.2 Feb 11, 2018
README.md full rename Piwik -> Matomo Jan 29, 2018
composer.json Run tests with PHP 7.2 Feb 11, 2018
phpunit.xml small adjustments so coveralls.io is able to display the source Oct 10, 2014

README.md

Matomo/Decompress

Component providing several adapters to decompress files.

Build Status Scrutinizer Code Quality

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.