Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 93 | All time: 9,899 This week: 63 |
Version | License | PHP version | Categories | |||
msisdn 1.0.0 | BSD License | 5 | PHP 5, Wireless and Mobile, Validation |
Description | Author | |||||||||||||||||||||||
This class can validate and find the operator of a phone number. Innovation Award
|
|
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
Download the package zip, extract and run
composer install
composer require allan/msisdn
use Msisdn\Utility;
include 'vendor/autoload.php';
var_dump(Utility::channel(254720000000)); // string(9) "SAFARICOM"
use Msisdn\Utility;
include 'vendor/autoload.php';
var_dump(Utility::clean("0720000000")); // int(254720000000)
Files (4) |
File | Role | Description | ||
---|---|---|---|---|
src (1 directory) | ||||
composer.json | Data | Auxiliary data | ||
composer.lock | Data | Auxiliary data | ||
README.md | Doc. | Documentation |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.