承接 malico/mobile-cm-php 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

malico/mobile-cm-php

最新稳定版本:1.3.1

Composer 安装命令:

composer require malico/mobile-cm-php

包简介

Get Telephone number's Mobile Network

README 文档

README

Determine mobile telephone operator from user number (Cameroon)

Installation

composer require malico/mobile-cm-php

Usage

<?php

require 'vendor/autoload.php';

use Malico\MobileCM\Network;

$phone = '00237653956703';
// $phone = '+237653956703';
// $phone = '237653956703';
// $phone = '653956703';

echo Network::check($phone);
// nexttel | mtn | orange | camtel

if (Network::isOrange($phone)) {
    echo 'Orange';
}
if (Network::IsNexttel($phone)) {
    echo 'Nextel';
}

if (Network::isCamtel($phone)) {
    echo 'Camtel';
}


?>

Simple. But useful

* Camtel numbers are tricky. Not sure. Feel feel free to send in a PR for that.

统计信息

  • 总下载量: 979
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-08-11