PHPackages                             hejunjie/mobile-locator - 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. hejunjie/mobile-locator

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

hejunjie/mobile-locator
=======================

基于国内号段规则的手机号码归属地查询库，支持运营商识别与地区定位，适用于注册验证、用户画像、数据归档等场景 | A mobile number lookup library based on Chinese carrier rules. Identifies carriers and regions, suitable for registration checks, user profiling, and data archiving.

v1.0.4(1mo ago)219.2k↓20.6%41MITPHPPHP &gt;=8.1

Since Apr 12Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/zxc7563598/php-mobile-locator)[ Packagist](https://packagist.org/packages/hejunjie/mobile-locator)[ RSS](/packages/hejunjie-mobile-locator/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (5)DependenciesVersions (6)Used By (1)

hejunjie/mobile-locator
=======================

[](#hejunjiemobile-locator)

English ｜ [简体中文](./README.zh-CN.md)

A mobile phone number location lookup library based on Chinese number segment rules. Supports carrier and region identification, suitable for registration validation, user profiling, and data archiving.

[![PHP Version](https://camo.githubusercontent.com/26a9c3ff4f26299c8d8a78a030741dc91155d40ba7eb933a9b5e1a1113ab1cb8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344253230382e312d626c7565)](https://www.php.net/)[![License](https://camo.githubusercontent.com/f8df3091bbe1149f398a5369b2c39e896766f9f6efba3477c63e9b4aa940ef14/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e)](./LICENSE)

> Number segments included: **483,709**

**This project has been parsed by Zread. Click here for a quick overview: [Understand this project](https://zread.ai/zxc7563598/php-mobile-locator)**

Features
--------

[](#features)

- **Offline lookup**: No third-party API dependencies or network requests — all data is bundled locally
- **On-demand loading**: Data is split across multiple files by number prefix, loading only what's needed per query to minimize memory usage
- **Carrier identification**: Automatically identifies China Mobile, China Unicom, China Telecom, and other carriers
- **Region resolution**: Pinpoints location down to province and city
- **Regular updates**: Number segment data is updated periodically to stay current

Requirements
------------

[](#requirements)

- PHP &gt;= 8.1

Installation
------------

[](#installation)

```
composer require hejunjie/mobile-locator
```

Quick Start
-----------

[](#quick-start)

```
