Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2021-11-28 (19 days ago) | | Not yet rated by the users | | Total: 58 This week: 27 | | All time: 10,037 This week: 6 |
|
Description | | Author |
This class can validate and find the operator of a phone number.
It takes a telephone MSISDN number and checks if it is valid.
The class can also determine if the number is of known telephone company operator company. Innovation Award
November 2021
Nominee
Vote |
MSISDN is a number that is useful to identify a phone number from any country in the world.
This class can determine if a phone number is of a given operator company.
Manuel Lemos |
| |
|
|
Innovation award
Nominee: 1x |
|
Details
msisdn
This is a basic PHP 7 package that basically enforces the standard number format of 2547 prrefix of Kenyan based mobile numbers. The clean method also checks for the validity of an MSISDN number if given as 07XX, 7XX or 2547XX formats. Prefixes are updated courtesy of https://en.wikipedia.org/wiki/Telephone_numbers_in_Kenya
Installation
Download the package zip, extract and run
composer install
Alternatively run:
composer require allan/msisdn
Examples
Get Channel
use Msisdn\Utility;
include 'vendor/autoload.php';
var_dump(Utility::channel(254720000000)); // string(9) "SAFARICOM"
Clean MSISDN
use Msisdn\Utility;
include 'vendor/autoload.php';
var_dump(Utility::clean("0720000000")); // int(254720000000)
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.