iamwizzdom / netty-finder-php
Check a Nigerian telephone number and detect which network it belongs to.
1.0
2020-04-09 23:38 UTC
Requires
- php: ~7.0
Requires (Dev)
- phpunit/phpunit: ^6.0
This package is auto-updated.
Last update: 2025-07-10 11:31:22 UTC
README
This is a PHP version of the original netty-finder that was written in JavaScript
Installation
GitHub
$ git clone https://github.com/iamwizzdom/netty-finder-php.git
$ cd netty-finder-php
$ composer install
PHP
$ composer require iamwizzdom/netty-finder-php
Usage
require 'vendor/autoload.php'; $detector = new Netty\NetworkDetect("09014048764"); $networkName = $detector->getNetworkName(); $numberPrefix = $detector->getNumberPrefix(); echo $networkName; //--> Airtel echo $numberPrefix; //--> 0901
About Author
This was originally built by Bolaji Ayodeji so all rights goes to him, I only rewrote the library in PHP with a little modification to accept phone numbers with country code.
Contribution
For now, I dont accept contributions except its from the javascript netty_finder, so I suggest you contribute there. Any changes from there will be added to the PHP version.