PHPackages                             yingouqlj/china-region - 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. yingouqlj/china-region

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

yingouqlj/china-region
======================

china region 中国城市代码表

2841PHP

Since Mar 19Pushed 9y ago2 watchersCompare

[ Source](https://github.com/yingouqlj/china-region)[ Packagist](https://packagist.org/packages/yingouqlj/china-region)[ RSS](/packages/yingouqlj-china-region/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

china-region
============

[](#china-region)

中国区域表（反正就是个区域代码表的数组）

中国地区的区域表 数据来源 中华人民共和国统计局官网&gt; 统计数据 &gt; 统计标准 &gt; 行政区划代码（定期我会更新）

单个查找

```
//根据编号查询
$region=RegionUtils::findByCode(310000);

//根据名称查询
$region=RegionUtils::findByTitle(上海市);
//返回 Region 类；

//取ID
$region->getId();
//取上级id
$region->getParentId();
//取名称
$region->getTitle();
//取省份
$region->getProvince();
```

取下级列表

```
$regions=RegionUtils::listSubNode(310000);
//返回类型 Region[]

foreach($regions as $r){
	//取ID
$r->getId();
//取上级id
$r->getParentId();
//取名称
$r->getTitle();
//取省份
$r->getProvince();
}

```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/500873?v=4)[钱礼骏](/maintainers/yingouqlj)[@yingouqlj](https://github.com/yingouqlj)

---

Top Contributors

[![yingouqlj](https://avatars.githubusercontent.com/u/500873?v=4)](https://github.com/yingouqlj "yingouqlj (17 commits)")

### Embed Badge

![Health badge](/badges/yingouqlj-china-region/health.svg)

```
[![Health](https://phpackages.com/badges/yingouqlj-china-region/health.svg)](https://phpackages.com/packages/yingouqlj-china-region)
```

###  Alternatives

[toplan/task-balancer

lightweight and powerful task load balancing.

47120.5k6](/packages/toplan-task-balancer)[okapi/aop

PHP AOP is a PHP library that provides a powerful Aspect Oriented Programming (AOP) implementation for PHP.

3813.1k](/packages/okapi-aop)

PHPackages © 2026

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