tiny-blocks / encoder
Encoder and decoder for arbitrary data.
Installs: 3 034
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^8.1||^8.2
- ext-gmp: *
Requires (Dev)
- infection/infection: ^0.26
- phpmd/phpmd: ^2.13
- phpunit/phpunit: ^9.6
- squizlabs/php_codesniffer: ^3.7
Suggests
- ext-gmp: Enables faster math with arbitrary-precision integers using GMP.
README
Overview
Encoder and decoder for arbitrary data.
Installation
composer require tiny-blocks/encoder
How to use
The library exposes concrete implementations for encoding and decoding data.
Using Base62
$encoded = Base62::encode(value: 'Hello world!') # T8dgcjRGuYUueWht Base62::decode(value: $encoded) # Hello world!
License
Encoder is licensed under MIT.
Contributing
Please follow the contributing guidelines to contribute to the project.