openbitapp / laravel-lzw
LZW Compressor/Decompressor for Laravel
v1.0.0
2019-06-18 17:46 UTC
Requires
- php: ^7.1.3
- illuminate/support: ~5.8.0
Requires (Dev)
- orchestra/testbench: ~3.8.0
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2024-12-22 00:19:25 UTC
README
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.