PHP code example of nassiry / laravel-encoder
1. Go to this page and download the library: Download nassiry/laravel-encoder 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/ */
nassiry / laravel-encoder example snippets
use Nassiry\Encoder\Facades\Encoder;
$encoded = Encoder::encodeId(12345);
$decoded = Encoder::decodeId($encoded);
echo $encoded; // Encoded Strings
echo $decoded; // 12345
$encoded = Encoder::encodeString('Hello World');
$decoded = Encoder::decodeString($encoded);
echo $encoded; // Encoded Strings
echo $decoded; // Hello World