![]() Server : LiteSpeed System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : claqxcrl ( 523) PHP Version : 8.1.32 Disable Function : NONE Directory : /home/claqxcrl/anfangola.com/wp-content/plugins/matomo/app/vendor/matomo/decompress/ |
# Matomo/Decompress Component providing several adapters to decompress files. [](https://travis-ci.org/matomo-org/component-decompress) It supports the following compression formats: - Zip - Gzip - Bzip - Tar (gzip or bzip) With the following adapters: - `PclZip`, based on the [PclZip library](http://www.phpconcept.net/pclzip/) - `ZipArchive`, based on PHP's [Zip extension](http://fr.php.net/manual/en/book.zip.php) - `Gzip`, based on PHP's native Gzip functions - `Bzip`, based on PHP's native Bzip functions - `Tar`, based on the [Archive_Tar library](https://github.com/pear/Archive_Tar) from PEAR ## Installation With Composer: ```json { "require": { "matomo/decompress": "*" } } ``` ## Usage All adapters have the same API as they implement `Matomo\Decompress\DecompressInterface`: ```php $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](http://choosealicense.com/licenses/lgpl-3.0/).