PHP code example of xdpx / mobile-operators-codes

1. Go to this page and download the library: Download xdpx/mobile-operators-codes 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/ */

    

xdpx / mobile-operators-codes example snippets


$reader = new \MobileOperatorsCodes\Reader();
$record = $reader->findRecord('+79991234567');
$record = $reader->findRecord('89991234567');
$record = $reader->findRecord('(999) 123-45-67');
$record = $reader->findRecord('9991234567');

echo $record->getOperator();