2017 © Pedro Peláez
 

library compress

Compress library

image

ebidtech/compress

Compress library

  • Friday, April 25, 2014
  • by ebidtech
  • Repository
  • 15 Watchers
  • 3 Stars
  • 4,959 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 1 % Grown

The README.md

Compress

Simple wrapper that provides a common interface for data compression. Making easy to change the compression algorithm and use a common interface., (*1)

Latest Stable Version Build Status Coverage Status Scrutinizer Quality Score Dependency Status, (*2)

Requirements

  • PHP >= 5.4

Installation

The recommended way to install is through composer., (*3)

Just create a composer.json file for your project:, (*4)

``` json { "require": { "ebidtech/compress": "@stable" } }, (*5)


**Tip:** browse [`ebidtech/compress`](https://packagist.org/packages/ebidtech/compress) page to choose a stable version to use, avoid the `@stable` meta constraint. And run these two commands to install it: ```bash $ curl -sS https://getcomposer.org/installer | php $ composer install

Now you can add the autoloader, and you will have access to the library:, (*6)

<?php

require 'vendor/autoload.php';

Usage

Builder

use EBT\Compress\CompressBuilder;

$compressor = CompressBuilder::create()->get('gzencode');
$compressedData = $compressor->compress('some text');
echo $compressor->uncompress($compressedData); // will print 'some text'

Regular way

use EBT\Compress\GzcompressCompressor as Compressor;

$compressor = new Compressor();
$compressedData = $compressor->compress('some text');
echo $compressor->uncompress($compressedData); // will print 'some text'

Traits

use EBT\Compress\GzcompressCompressorTrait as CompressorTrait;

class Test
{
    use CompressorTrait;

    public function test()
    {
        $compressedData = $this->compress('test');
        echo $this->uncompress($compressedData); // will print 'some text'
    }
}

Contributing

See CONTRIBUTING file., (*7)

Credits

License

Compress library is released under the MIT License. See the bundled LICENSE file for details., (*8)

The Versions

25/04 2014

dev-master

9999999-dev http://github.com/ebidtech/compress

Compress library

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Avatar ebidtech

php library compress gzip gzencode

28/11 2013

v1.1.1

1.1.1.0 http://github.com/ebidtech/compress

Compress library

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Avatar ebidtech

php library compress gzip gzencode

28/11 2013

v1.1

1.1.0.0 http://github.com/ebidtech/compress

Compress library

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Avatar ebidtech

php library compress gzip gzencode

27/11 2013

v1.0

1.0.0.0 http://github.com/ebidtech/compress

Compress library

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Avatar ebidtech

php library compress gzip gzencode

27/11 2013

v0.4.1

0.4.1.0 http://github.com/ebidtech/compress

Compress library

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Avatar ebidtech

php library compress gzip gzencode

27/11 2013

v0.4

0.4.0.0 http://github.com/ebidtech/compress

Compress library

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Avatar ebidtech

php library compress gzip gzencode

27/11 2013

v0.3

0.3.0.0 http://github.com/ebidtech/compress

Compress library

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Avatar ebidtech

php library compress gzip gzencode

27/11 2013

v0.2

0.2.0.0 http://github.com/ebidtech/compress

Compress library

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Avatar ebidtech

php library compress gzip gzencode

25/11 2013

v0.1.1

0.1.1.0 http://github.com/ebidtech/compress

Compress library

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Avatar ebidtech

php library compress gzip gzencode

25/11 2013

v0.1

0.1.0.0 http://github.com/ebidtech/compress

Compress library

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Avatar ebidtech

php library compress gzip gzencode