Skip to content

Latest commit

 

History

History
44 lines (26 loc) · 1.07 KB

README.md

File metadata and controls

44 lines (26 loc) · 1.07 KB

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.