update Piwik to version 2.16 (fixes #91)
This commit is contained in:
parent
296343bf3b
commit
d885a4baa9
5833 changed files with 418860 additions and 226988 deletions
50
www/analytics/vendor/piwik/decompress/README.md
vendored
Normal file
50
www/analytics/vendor/piwik/decompress/README.md
vendored
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
# Piwik/Decompress
|
||||
|
||||
Component providing several adapters to decompress files.
|
||||
|
||||
[](https://travis-ci.org/piwik/component-decompress)
|
||||
[](https://coveralls.io/r/piwik/component-decompress?branch=master)
|
||||
[](https://scrutinizer-ci.com/g/piwik/component-decompress/?branch=master)
|
||||
|
||||
It supports the following compression formats:
|
||||
|
||||
- Zip
|
||||
- Gzip
|
||||
- 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
|
||||
- `Tar`, based on the [Archive_Tar library](https://github.com/pear/Archive_Tar) from PEAR
|
||||
|
||||
## Installation
|
||||
|
||||
With Composer:
|
||||
|
||||
```json
|
||||
{
|
||||
"require": {
|
||||
"piwik/decompress": "*"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
All adapters have the same API as they implement `Piwik\Decompress\DecompressInterface`:
|
||||
|
||||
```php
|
||||
$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](http://choosealicense.com/licenses/lgpl-3.0/).
|
||||
Loading…
Add table
Add a link
Reference in a new issue