lyhiving/mobile2location

location of mobile phone number

1.3 2019-01-24 09:36 UTC

This package is auto-updated.

Last update: 2024-12-15 20:22:12 UTC


README

Latest Stable Version Build Status Minimum PHP Version

PHP 实现手机号码归属地查询,数据文件来自 https://github.com/lovedboy/phone

  • 归属地信息库文件大小:3,501,109 字节
  • 归属地信息库最后更新:2018年4月
  • 手机号段记录条数:387695

Installation

composer require "lyhiving/mobile2location:^1.0"

Usage

<?php
use lyhiving\Mobile\Mobile2Location;

// composer 方式安装
// include './vendor/autoload.php';

// 非 composer 方式安装的,引入文件
// include './src/Mobile2Location.php';
	
$pl = new Mobile2Location();
$info = $pl->find(13800138000);
print_r($info);

// Output;
Array
(
    [province] => 北京
    [city] => 北京
    [postcode] => 100000
    [tel_prefix] => 010
    [sp] => 移动
)

Thanks

https://github.com/lovedboy/phone

https://github.com/xluohome/phonedata

License

MIT license.