PHP code example of katalyst / mdn-esn

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

    

katalyst / mdn-esn example snippets

 php
$mdn = new Katalyst\MdnEsn\Mdn($mobile_number, $mdn_length);
$validMdn = $mdn->isValid();

$esn = new Katalyst\MdnEsn\Esn($esn);
$validEsn = $esn->isValidFormat();
...