PHP code example of hylianshield / base32-crockford

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

    

hylianshield / base32-crockford example snippets



use HylianShield\Encoding\Base32CrockfordEncoder;

$encoder = new Base32CrockfordEncoder();

$encoded = $encoder->encode(1337);        // 0000019S5
$decoded = $encoder->decode('0000019S5'); // 1337