openbitapp/laravel-lzw

LZW Compressor/Decompressor for Laravel

Downloads

31

Stars

2

Version

v1.0.0

Laravel LZW

Latest Version on Packagist Total Downloads

Lempel–Ziv–Welch (LZW) is a universal lossless data compression algorithm. This package offers support for compressing and decompressing data using LZW.

Installation

You can install the package via composer:

composer require openbitapp/laravel-lzw

The package registers itself and his facade automatically.

Usage

You can compress and decompress data using the facade.

$data = LZW::compress('String data to compress');

$data->toString();
$data->toArray();
$data->toJson();

LZW::decompress($data->toString());
LZW::decompress($data->toArray());

Testing

./vendor/bin/phpunit

Credits

License

The MIT License (MIT). Please see License File for more information.

openbitapp

Author

openbitapp