PHP code example of mapado / iso7064-mod-97-10

1. Go to this page and download the library: Download mapado/iso7064-mod-97-10 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/ */

    

mapado / iso7064-mod-97-10 example snippets


$service = new Mapado\Iso7064Mod9710\ISO7064Mod97_10();
$number = 107571;
$yourNum = $service->encode($number);
var_dump($yourNum);
//int(10757107)

var_dump($service->verify($yourNum));

$validNumber = '10757107';
$invalidNumber = '10767107';
var_dump($service->verify($validNumber));
var_dump($service->verify($invalidNumber));