Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iamwizzdom/netty-finder-php
Check a Nigerian telephone number and detect which network it belongs to.
https://github.com/iamwizzdom/netty-finder-php
Last synced: 4 days ago
JSON representation
Check a Nigerian telephone number and detect which network it belongs to.
- Host: GitHub
- URL: https://github.com/iamwizzdom/netty-finder-php
- Owner: iamwizzdom
- License: mit
- Created: 2020-04-09T23:32:41.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-09T23:39:51.000Z (almost 5 years ago)
- Last Synced: 2024-11-16T17:40:01.638Z (2 months ago)
- Language: PHP
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.MD
- License: LICENSE
Awesome Lists containing this project
README
# NettyFinder :rocket:
This is a PHP version of the original [netty-finder](https://github.com/BolajiAyodeji/netty-finder) that was written in JavaScript
# Installation
## GitHub
```bash
$ git clone https://github.com/iamwizzdom/netty-finder-php.git
$ cd netty-finder-php
$ composer install
```## PHP
```bash
$ composer require iamwizzdom/netty-finder-php
```# Usage
```php
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](https://github.com/BolajiAyodeji) 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](https://github.com/BolajiAyodeji/netty-finder), so I suggest you contribute there. Any changes from there will be added to the PHP version.