PHP code example of moonwalkerz / base58

1. Go to this page and download the library: Download moonwalkerz/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/ */

    

moonwalkerz / base58 example snippets



use Moonwalkerz\Base58\Base58;

$encoded = Base58::encode('Hello, World!');
echo "Encoded: $encoded\n"; // Output: Encoded: JxF12TrwUP45BMd


use Moonwalkerz\Base58\Base58;

$decoded = Base58::decode('JxF12TrwUP45BMd');
echo "Decoded: $decoded\n"; // Output: Decoded: Hello, World!