| Recommend this page to a friend! |
| Info | Documentation | Reputation | Support forum | Blog | Links |
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not yet rated by the users | Total: 53 | All time: 10,652 This week: 660 | ||||
| Version | License | PHP version | Categories | |||
| php_validate_nigeria 1.0.0 | Custom (specified... | 5 | PHP 5, Validation |
| Description | Author | |
This class can parse and validate Nigeria phone numbers. |
Nigerian Phone Number Validator (PHP)
A Python module to validate and format a Nigerian phone number as well as deduce the network provider or area code.
You will need PHP 7.x and composer.
Install using composer: composer require djunehor/validate_nigerian_phone
use \Djunehor\Validator\NigerianPhone;
$phone = new NigerianPhone('+2348135087966');
// Check if is valid
$phone->isValid(); // true
// Get formatted
$phone->formatted(); // 08135087966
// Get Network
$phone->getNetwork(); // mtn
// Check if is mtn
$phone->isMtn(); // True
// Get network from phone number prefix e.g
$phone->getNetworkByPrefix('0703'); // mtn
Check out the issues on GitHub and/or make a pull request to contribute!
| File | Role | Description | ||
|---|---|---|---|---|
| Data | Auxiliary data | |||
| Data | Auxiliary data | |||
| Data | Auxiliary data | |||
| Data | Auxiliary data | |||
| Data | Auxiliary data | |||
| Data | Auxiliary data | |||
| Data | Auxiliary data | |||
| Data | Auxiliary data | |||
| Data | Auxiliary data | |||
| Lic. | License text | |||
| Data | Auxiliary data | |||
| Data | Auxiliary data | |||
| Data | Auxiliary data | |||
| 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. |
| php_validate_nigeria-2019-10-10.zip 13KB | |
| php_validate_nigeria-2019-10-10.tar.gz 10KB | |
| 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.