yocto / yoclib-multibase-php

PHP yocLib for Multibase of the Multiformats project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yocLib - Multibase (PHP)

This yocLibrary enables your project to encode and decode Multibases in PHP.

Status

PHP Composer codecov

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);

About

PHP yocLib for Multibase of the Multiformats project

License:GNU General Public License v3.0


Languages

Language:PHP 100.0%