Skip to content

Check a Nigerian telephone number and detect which network it belongs to.

License

Notifications You must be signed in to change notification settings

iamwizzdom/netty-finder-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NettyFinder 🚀

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.

About

Check a Nigerian telephone number and detect which network it belongs to.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages