PHP code example of brianfreytag / php-bijective
1. Go to this page and download the library: Download brianfreytag/php-bijective 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/ */
brianfreytag / php-bijective example snippets
use Bijective\BijectiveTranslator;
$alphabet = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
$bijective = new BijectiveTranslator($alphabet);
$encoded = $bijective->encode(123); // Returns ct
$decoded = $bijective->decode('ct'); // Returns 123
sh
php composer.phar