PHP code example of talex / simple-hash

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

    

talex / simple-hash example snippets


use  Talex\SimpleHash\Str;

$number = 111;
$encoderDecoder = new Str();

$encoderDecoder->encode($number);

echo "Encoded: {$encoderDecoder->getEncodedString()}\n";

$encoderDecoder->decode();
echo "Decoded: {$encoderDecoder->getDecodedString()}\n";