PHP code example of vietstars / base58
1. Go to this page and download the library: Download vietstars/base58 library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
vietstars / base58 example snippets
php
$base58 = new Vietstars\Base58;
$encoded = $base58->encode(random_bytes(256));
$decoded = $base58->decode($encoded);
php
$integer = $base58->encodeInteger(987654321);
print $base58->decodeInteger("1TFvCj", true);
php
$string = $base58->encode("987654321");
$integer = $base58->encodeInteger(987654321);