PHP code example of erickskrauch / mcc-mnc

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

    

erickskrauch / mcc-mnc example snippets


$countryCode = \ErickSkrauch\MccMnc\Reference::countryFromMcc(260); // 'PL'
$mcc = \ErickSkrauch\MccMnc\Reference::mccFromCountry('US'); // 312