PHPackages                             quansitech/qscmf-chinese-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. quansitech/qscmf-chinese-region

ActiveLibrary

quansitech/qscmf-chinese-region
===============================

qscmf chinese-region

v1.1.7(4mo ago)0108↓100%1MITPHPPHP &gt;=8.2

Since Oct 22Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/quansitech/qscmf-chinese-region)[ Packagist](https://packagist.org/packages/quansitech/qscmf-chinese-region)[ RSS](/packages/quansitech-qscmf-chinese-region/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (18)Used By (0)

quansitech/qscmf-chinese-region
===============================

[](#quansitechqscmf-chinese-region)

```
用于维护中国省市区数据

```

#### 安装

[](#安装)

```
composer require quansitech/qscmf-chinese-region
```

#### 用法

[](#用法)

- 设置ENV

    ```
    # 存储地区数据的数据表名，必填
    QSCMF_CHINESE_REGION_TABLE_NAME=

    # 数据迁移目录配置，必填，具体用法看数据迁移目录配置说明
    QSCMF_CHINESE_REGION_MIGRATION_DIR=
    ```
- 同步数据 自动执行数据迁移来更新数据

#### 数据迁移目录配置说明

[](#数据迁移目录配置说明)

```
不同的系统所使用的地区数据结构不一样，所以需要配置数据迁移目录

```

- 目录名称
    - `three`：三层数据，省市区
    - `four`：四层数据，省市区乡镇

##### *开发时需要根据不同的数据迁移目录来创建不同的迁移文件*

[](#开发时需要根据不同的数据迁移目录来创建不同的迁移文件)

##### *若有删除地区，需要维护 deprecation-log.json 文件来警告*

[](#若有删除地区需要维护-deprecation-logjson-文件来警告)

#### 工具类说明

[](#工具类说明)

[MigrationCommon](./src/docs/MigrationCommon.md)

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance78

Regular maintenance activity

Popularity13

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 87.1% 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 ~28 days

Recently: every ~21 days

Total

17

Last Release

120d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/15a0610fee78753bdad92fd45c3506455c0fd45ae51924797b1841d260495a3f?d=identicon)[tiderjian](/maintainers/tiderjian)

![](https://www.gravatar.com/avatar/6c2b4bb10b346cb957c091d3273e3332276b5d09a29e255d387184f5dd4b5976?d=identicon)[xhiny](/maintainers/xhiny)

---

Top Contributors

[![Xhiny](https://avatars.githubusercontent.com/u/35066497?v=4)](https://github.com/Xhiny "Xhiny (27 commits)")[![1041729157](https://avatars.githubusercontent.com/u/35829078?v=4)](https://github.com/1041729157 "1041729157 (4 commits)")

---

Tags

componentqscmfchinese-region

### Embed Badge

![Health badge](/badges/quansitech-qscmf-chinese-region/health.svg)

```
[![Health](https://phpackages.com/badges/quansitech-qscmf-chinese-region/health.svg)](https://phpackages.com/packages/quansitech-qscmf-chinese-region)
```

PHPackages © 2026

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