Skip to content

limingshang/shitoudev-phone-location-lms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

此包我是根据作者修改的一个简单包,完全自己使用,所有作者信息均归属原作者,本人只是自己使用

手机号码归属地查询

Latest Stable Version Build Status Minimum PHP Version

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

Installation

composer require "shitoudev/phone-location:^0.1"

Usage

<?php
use Shitoudev\Phone\PhoneLocation;

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

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

// Output;
Array
(
    [province] => 上海
    [city] => 上海
    [postcode] => 200000
    [tel_prefix] => 021
    [sp] => 联通
)

Thanks

https://github.com/lovedboy/phone

License

MIT license.

About

shitoudev/phone-location-lms

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages