PHPackages                             swx/phone\_city - 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. swx/phone\_city

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

swx/phone\_city
===============

国内手机号归属地解析

v1.0.1(4y ago)07Apache-2.0PHPPHP &gt; 7.0

Since Dec 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/swoolex/phone_city)[ Packagist](https://packagist.org/packages/swx/phone_city)[ Docs](https://www.sw-x.cn/)[ RSS](/packages/swx-phone-city/feed)WikiDiscussions main Synced yesterday

READMEChangelog (1)DependenciesVersions (3)Used By (0)

swoolex
=======

[](#swoolex)

[SW-X官方地址](https://www.sw-x.cn/ "SW-X官方地址")

### 介绍

[](#介绍)

PhoneCity组件为SW-X框架的官方扩展包，是对国内手机号码校验、归属地、号段前缀、三大运营商进行解析的支持，除了支持SW-X框架环境下运行外，也支持常用的FPM框架。

训练库更新于`2021-12-4`号，共计约 41W 条数据，准确率可达99.5%。

若有未包含的手机段，可告知SW-X开发组成员进行更新维护。

### 文档地址

[](#文档地址)

[文档地址](https://www.sw-x.cn/word/phone_city.html "文档地址")

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

1619d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1dac8beae80662475ae63d3e3ebe5c1e960697102dd3999656a53666d50a5d6d?d=identicon)[swoole](/maintainers/swoole)

---

Top Contributors

[![swoolex](https://avatars.githubusercontent.com/u/66401258?v=4)](https://github.com/swoolex "swoolex (2 commits)")

---

Tags

swooleswoolexsw-xswoole-xswx-phone\_city

### Embed Badge

![Health badge](/badges/swx-phone-city/health.svg)

```
[![Health](https://phpackages.com/badges/swx-phone-city/health.svg)](https://phpackages.com/packages/swx-phone-city)
```

###  Alternatives

[hyperf/di

A DI for Hyperf.

182.8M594](/packages/hyperf-di)[hyperf/crontab

A crontab component for Hyperf.

131.6M62](/packages/hyperf-crontab)

PHPackages © 2026

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