Skip to content

A php library to determine the network provider for various GSM mobile numbers.

License

Notifications You must be signed in to change notification settings

dtobi59/GSM-Number-Prefixes

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phone Number Network Operator Identifier

Library for identifying mobile numbers network operators

A simple library that helps identify the current network operator of a phone number based on its prefixes.

Just install the package, add the config and it is ready to use!

Requirements

  • PHP >= 7.1

Installation

composer require devtobi/gsm-number-prefixes:dev-master

Usage

Get network operator of a phone number

use devtobi\GsmNumberPrefixes\GsmNumberPrefix;

$gsmNetworkIdentifier = new GsmNumberPrefix();

$gsmNetworkIdentifier->getNetworkProvider($phone_number);

Available Response

  1. mtn
  2. airtel
  3. glo
  4. 9mobile
  5. starcomms
  6. visafone
  7. multilinks
  8. zoom
  9. ntel
  10. smile
  11. unknown

Credits

About

A php library to determine the network provider for various GSM mobile numbers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%