PHP code example of northlands / permuteseq

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

    

northlands / permuteseq example snippets


$permuteseq = new Permuteseq(123456789012345, 1000, 9999); // Range 1000-9999

$encoded = $permuteseq->encode(1000); // 1446
$decoded = $permuteseq->decode($encoded); // 1000