Skip to content

calibr/country-mobile-carriers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Returns list of mobile carriers for specific country

Install

composer require calibr/country-mobile-carriers

Usage

$carriers = CountryMobileCarriers::getList("RU");

/**
 * carriers array will look like this:
 * [
 *   [
 *     "name" => "Baykal Westcom",
 *     "mcc" => 250,
 *     "mnc" => 12
 *   ],
 *   ...
 * ]
 */

// returns whole database as array, key is country code, value is list of carriers
// in same format as in getList
$allCarriers = CountryMobileCarriers::getAll();

Database is taken from http://mcc-mnc.com/.

About

Returns list of mobile carriers for specific country

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages