Skip to content

openbitapp/laravel-lzw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.