PHPackages                             heivin/chinese-package - 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. heivin/chinese-package

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

heivin/chinese-package
======================

Common Chinese development resources in Laravel

0.1(10y ago)037MITJavaScriptPHP &gt;=5.3.0

Since Dec 26Pushed 10y ago1 watchersCompare

[ Source](https://github.com/heivin/chinese-package)[ Packagist](https://packagist.org/packages/heivin/chinese-package)[ Docs](https://github.com/heivin/chinese-package)[ RSS](/packages/heivin-chinese-package/feed)WikiDiscussions master Synced 4w ago

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

chinese-package
===============

[](#chinese-package)

Common Chinese development resources in Laravel 常用中文开发资源: 省市县区 地图数据

Province
--------

[](#province)

Example
-------

[](#example)

```
require_once __DIR__ . '/../../vendor/autoload.php'; // Autoload files using Composer autoload

use Heivin\Chinese;

var_dump( Chinese::province() ); // Array
echo Chinese::city('json'); // Json
var_dump( Chinese::area() ); // Array
var_dump(json_encode(Chinese::map('anhui')));
var_dump(json_encode(Chinese::map('anhui','json'))); //Json

```

Laravel
-------

[](#laravel)

5.x

use Heivin\\Chinese;

class IndexController extends Controller {

```
public function test(){

    return response()->json(Chinese::province()); // Response with json

    return response(Chinese::city('json'))->header('Content-Type', 'text/json'); // Response with json

}

```

}

TODO List
---------

[](#todo-list)

1. 电话区号
2. 身份证识别
3. IP段
4. 经纬度

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

3839d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8043708?v=4)[Heivin Woo](/maintainers/heivin)[@heivin](https://github.com/heivin)

---

Top Contributors

[![heivin](https://avatars.githubusercontent.com/u/8043708?v=4)](https://github.com/heivin "heivin (13 commits)")

---

Tags

laravelcityChinesepostcodeprovincearea codeplate number

### Embed Badge

![Health badge](/badges/heivin-chinese-package/health.svg)

```
[![Health](https://phpackages.com/badges/heivin-chinese-package/health.svg)](https://phpackages.com/packages/heivin-chinese-package)
```

###  Alternatives

[overtrue/laravel-pinyin

Chinese to Pinyin translator.

531600.6k12](/packages/overtrue-laravel-pinyin)[dipeshsukhia/laravel-country-state-city-data

Country State City Data Provider

8231.3k1](/packages/dipeshsukhia-laravel-country-state-city-data)[lokielse/laravel-pinyin

Chinese Pinyin Bundle For Laravel

1413.8k](/packages/lokielse-laravel-pinyin)[usamamuneerchaudhary/country-city-state

Country City State Data Provider for Laravel 12+

242.7k](/packages/usamamuneerchaudhary-country-city-state)[cuneytyuksel/turkey-cities

Turkey Cities and States - Türkiye İl ve İlçeler (PTT)

241.9k](/packages/cuneytyuksel-turkey-cities)

PHPackages © 2026

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