Decompress files
PHP
Latest commit 7320359 Feb 18, 2017 @sgiehl sgiehl committed on GitHub Merge pull request #9 from nztim/fix-nztim
Convert to integer to avoid PHP warning
Permalink
Failed to load latest commit information.
libs Update modifications list Feb 13, 2017
src improve tests for gzip Jan 3, 2016
tests improve tests for gzip Jan 3, 2016
.gitignore
.travis.yml Green build for component-decompress (#8) Jul 19, 2016
README.md Remove coveralls icon Jul 19, 2016
composer.json
composer.lock
phpunit.xml

README.md

Piwik/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": {
        "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.