yocto / yoclib-multibase
This yocLibrary enables your project to encode and decode Multibases in PHP.
Installs: 1 884
Dependents: 2
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 1
Requires
- php: ^7.4||^8
- ext-mbstring: *
Requires (Dev)
- phpunit/phpunit: ^7||^8||^9
This package is auto-updated.
Last update: 2024-12-05 14:49:20 UTC
README
This yocLibrary enables your project to encode and decode Multibases in PHP.
Status
Installation
composer require yocto/yoclib-multibase
Usage
Encoding
use YOCLIB\Multiformats\Multibase\Multibase; $text = 'Hello world!'; $encodedString = Multibase::encode(Multibase::BASE16UPPER,$text);
Decoding
use YOCLIB\Multiformats\Multibase\Multibase; $encodedString = 'F48656C6C6F20776F726C6421'; $text = Multibase::decode($encodedString);