PHPackages                             liufhai/laravel-district - 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. liufhai/laravel-district

ActiveLibrary

liufhai/laravel-district
========================

District Explorer For Laravel with AutoNavi. 中国行政区划数据，访问高德在线数据获取最新区划数据。

10PHP

Since Dec 21Pushed 5y ago1 watchersCompare

[ Source](https://github.com/liufhai/laravel-district)[ Packagist](https://packagist.org/packages/liufhai/laravel-district)[ RSS](/packages/liufhai-laravel-district/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

laravel-district
================

[](#laravel-district)

中国行政区划数据，访问高德在线数据获取最新区划数据

中国行政区划数据，根据高德[行政区划浏览](https://lbs.amap.com/api/javascript-api/reference-amap-ui/geo/district-explorer)说明，访问[高德区划API](https://webapi.amap.com/ui/1.0/ui/geo/DistrictExplorer/assets/d_v1/country_tree.json)生成最新区划数据，支持动态更新最新区划数据。

安装说明
====

[](#安装说明)

```
$ composer require liufhai/laravel-district
```

使用说明
====

[](#使用说明)

生成migrations。

```
$ php artisan vendor:publish --provider="Liufhai\DistrictExplorer\ServiceProvider"
```

执行migrate。

```
$ php artisan migrate
```

加载Seeder。

```
$ composer dump-autoload
```

生成最新区划数据（数据表在生成时会自动清空之前数据）。

```
$ php artisan db:seed --class=DistrictsSeeder
```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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://www.gravatar.com/avatar/0f5351e3ac916576eac04132809769287a712938f5d9ca785b8c67a00caa604e?d=identicon)[liufhai](/maintainers/liufhai)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/liufhai-laravel-district/health.svg)

```
[![Health](https://phpackages.com/badges/liufhai-laravel-district/health.svg)](https://phpackages.com/packages/liufhai-laravel-district)
```

PHPackages © 2026

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