1. Go to this page and download the library: Download samsonkwiz/idobfuscator 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/ */
samsonkwiz / idobfuscator example snippets
use SamsonKwiz\IDObfuscator\IDObfuscator;
// Create a new obfuscator instance with default settings
$obfuscator = new IDObfuscator();
$originalId = 12345;
$encoded = $obfuscator->encode($originalId); // e.g. "004829374"
$decoded = $obfuscator->decode($encoded); // back to 12345
echo "ID {$originalId} → {$encoded} → {$decoded}";