PHPackages                             yueyifei/geobase - 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. yueyifei/geobase

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

yueyifei/geobase
================

地理位置库

v1.0.1(6y ago)371MITPHP

Since Jan 9Pushed 6y ago1 watchersCompare

[ Source](https://github.com/YYYif/geobase)[ Packagist](https://packagist.org/packages/yueyifei/geobase)[ RSS](/packages/yueyifei-geobase/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (3)Used By (0)

\##地理位置库

\####安装指南以及使用
`composer require yueyifei/geobase`
`use GeoBase\GeoBaseInfo`
`(new GeoBaseInfo())->getAllNation()`

\####精确查询

```
**
1、根据国家ID查询国家以及下属省份详细信息
2、根据国家名称查询国家以及下属省份详细信息
3、根据国家标准码查询国家以及下属省份详细信息（国家标准码如：中国--CN）
4、根据省份ID查询省份以及下属城市详细信息
5、根据省份名称查询省份以及下属城市详细信息（省份名为全称如'山东省'）
6、根据省份标准码查询省份以及下属城市详细信息
7、根据城市ID查询城市以及下属区详细信息
8、根据城市名称查询城市以及下属区详细信息（城市名为全称如'石家庄市'）
9、根据城市标准码查询城市以及下属区详细信息
10、根据区ID查询区以及所有街道详细信息
11、根据区名查询区以及所有街道详细信息
12、根据区标准码查询区以及所有街道详细信息
13、根据街道ID查询街道详细信息
14、根据街道名称查询所有街道详细信息
**

```

\####全部查询

```
**
1、查询所有国家信息（附带下属省份ID集合）
2、查询所有省份信息（附带下属城市ID集合）
3、查询所有城市信息（附带下属区ID集合）
4、查询所有区信息（附带下属街道ID集合）
5、查询所有街道信息
**

```

​
​

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

2315d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/344216e44d456725bae9e3dbdd839699aa0e68acb269b3325445a636534e523c?d=identicon)[YYYif](/maintainers/YYYif)

---

Top Contributors

[![YYYif](https://avatars.githubusercontent.com/u/41713116?v=4)](https://github.com/YYYif "YYYif (1 commits)")

### Embed Badge

![Health badge](/badges/yueyifei-geobase/health.svg)

```
[![Health](https://phpackages.com/badges/yueyifei-geobase/health.svg)](https://phpackages.com/packages/yueyifei-geobase)
```

PHPackages © 2026

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