utopia-php / compression
A simple Compression library to handle file compression
Requires
- php: >=8.1
Requires (Dev)
None
Suggests
- ext-brotli: Required for the Brotli algorithm
- ext-lz4: Required for the LZ4 algorithm
- ext-snappy: Required for the Snappy algorithm
- ext-xz: Required for the XZ algorithm
- ext-zlib: Required for the GZIP and Deflate algorithms
- ext-zstd: Required for the Zstd algorithm
Provides
None
Conflicts
None
Replaces
None
README
Important
This repository is a read-only mirror of packages/compression in appwrite/appwrite. Development happens there — please open issues and pull requests against appwrite/appwrite.
Utopia Compression is simple and lite library for managing file compression. It supports multiple compression algorithms. This library is aiming to be as simple and easy to learn and use. This library is maintained by the Appwrite team.
This library is part of the Utopia Framework project.
Getting started
Install using Composer:
composer require utopia-php/compression
System requirements
Utopia Compression requires PHP 8.4 or later and the utopia extension (ext-utopia, built from
crates/extension in
appwrite/appwrite). Every class of Utopia\Compression comes from the extension, which links the
codecs itself, so no PECL extension is needed except xz for the XZ algorithm. This package holds
their signatures for static analysis and editors (stubs/) and the tests. 0.1.x is the last
release with the classes in PHP.
Copyright and license
The MIT License (MIT) http://www.opensource.org/licenses/mit-license.php