PHPackages                             buqiu/mobile-location - 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. buqiu/mobile-location

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

buqiu/mobile-location
=====================

手机号码归属地详情查询

v1.0.0(2y ago)02001MITPHPPHP ^8.1

Since Dec 20Pushed 2y ago1 watchersCompare

[ Source](https://github.com/buqiu/mobile-location)[ Packagist](https://packagist.org/packages/buqiu/mobile-location)[ RSS](/packages/buqiu-mobile-location/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (3)Used By (0)

mobile-location
===============

[](#mobile-location)

介绍
--

[](#介绍)

号码归属地查询，只支持（中国移动、中国电信、中国联通、中国广电）运营商

环境
--

[](#环境)

```
php >= 8.1
composer >= 2.0

```

使用
--

[](#使用)

#### 1.安装

[](#1安装)

```
composer require buqiu/mobile-location

```

#### 2.发布 location.php 配置文件

[](#2发布-locationphp-配置文件)

```
php artisan vendor:publish --tag=location

```

#### 3.在 config\\app.php 找到 aliaes 数组，添加刚创建的类

[](#3在-configappphp-找到-aliaes-数组添加刚创建的类)

```
'Location' =>   Buqiu\MobileLocation\Facades\LocationFacade::class

```

#### 3.配置 .env 文件

[](#3配置-env-文件)

```
# 阿里云账号
ALIBABA_CLOUD_ACCESS_KEY_ID=
ALIBABA_CLOUD_ACCESS_KEY_SECRET=

# 号码百科
ALI_MOBILE_LOCATION_AUTH_CODE=

# 第三方号码归属地服务
THIRD_MOBILE_LOCATION_APP_CODE=

```

示例代码
----

[](#示例代码)

```
use Location;

Location::mobile('13100000000');
```

返回值
---

[](#返回值)

```
[
    'Service' => '服务商[ali:阿里云,third:第三方]',
    'Company' => '号码当前归属运营商',
    'Province' => '省份',
    'City' => '城市'
]
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

925d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/97229ae0e947eeff418e092a036e90d81654fb9a640281ed22438ec5685bc22b?d=identicon)[buqiu](/maintainers/buqiu)

---

Top Contributors

[![JWorking](https://avatars.githubusercontent.com/u/66121735?v=4)](https://github.com/JWorking "JWorking (3 commits)")[![buqiu](https://avatars.githubusercontent.com/u/7991121?v=4)](https://github.com/buqiu "buqiu (1 commits)")[![smallk1002](https://avatars.githubusercontent.com/u/36835076?v=4)](https://github.com/smallk1002 "smallk1002 (1 commits)")

---

Tags

laravelmobilelocationbuqiu

### Embed Badge

![Health badge](/badges/buqiu-mobile-location/health.svg)

```
[![Health](https://phpackages.com/badges/buqiu-mobile-location/health.svg)](https://phpackages.com/packages/buqiu-mobile-location)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k12.5k1](/packages/vinkius-labs-laravel-page-speed)[emargareten/inertia-modal

Inertia Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.

90142.9k](/packages/emargareten-inertia-modal)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

19267.9k3](/packages/interaction-design-foundation-laravel-geoip)[wearepixel/laravel-cart

A cart implementation for Laravel

1374.8k](/packages/wearepixel-laravel-cart)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
