iamwizzdom / netty-finder-php
检查尼日利亚的电话号码并检测其所属的网络。
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: 2024-09-10 09:37:50 UTC
README
这是由 JavaScript 编写的原始 netty-finder 的 PHP 版本
安装
GitHub
$ git clone https://github.com/iamwizzdom/netty-finder-php.git
$ cd netty-finder-php
$ composer install
PHP
$ composer require iamwizzdom/netty-finder-php
用法
require 'vendor/autoload.php'; $detector = new Netty\NetworkDetect("09014048764"); $networkName = $detector->getNetworkName(); $numberPrefix = $detector->getNumberPrefix(); echo $networkName; //--> Airtel echo $numberPrefix; //--> 0901
关于作者
这个最初是由 Bolaji Ayodeji 开发的,所以所有权利归他所有,我只是用 PHP 重写了这个库,并进行了一些修改以接受带有国家代码的电话号码。
贡献
目前,我不接受除了来自 JavaScript 的 netty_finder 的贡献,所以建议你在那里进行贡献。任何从那里做出的更改都将添加到 PHP 版本中。