PHPackages                             chendujin/mobile - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. chendujin/mobile

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

chendujin/mobile
================

PHP版本的中国手机号码归属地查询

v1.1.0(2y ago)41371MITPHPPHP &gt;=7.0

Since Jul 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/chendujin/mobile)[ Packagist](https://packagist.org/packages/chendujin/mobile)[ Docs](https://github.com/chendujin/mobile)[ RSS](/packages/chendujin-mobile/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

手机号码归属地解析
---------

[](#手机号码归属地解析)

- 使用 [https://github.com/xluohome/phonedata](https://github.com/xluohome/phonedata/blob/master/phone.dat) 提供的数据库

### 环境需求

[](#环境需求)

1. php &gt;= 7.0
2. Composer

### 安装

[](#安装)

```
composer require chendujin/mobile
```

### 配置

[](#配置)

#### Laravel环境无需配置

[](#laravel环境无需配置)

#### Lumen

[](#lumen)

将下面代码放入 `bootstrap/app.php`

```
$app->register(Chendujin\Mobile\ServiceProvider::class);
```

### 验证器使用

[](#验证器使用)

```
