heivin/chinese-package
Common Chinese development resources in Laravel
37
Larablocks Analysis
heivin/chinese-package works with any PHP project: the latest release (0.1, Dec 26, 2015) doesn't depend on Laravel.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- No release in the last 12 months (last: Dec 26, 2015)
- 0 downloads a month (needs 10,000)
- 0 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Dec 26, 2015.
- No releases in the last 12 months.
- First released: Dec 26, 2015.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 1, 2026.
| Install | |
|---|---|
composer require heivin/chinese-package |
|
| Latest Version: | 0.1 |
| PHP: | >=5.3.0 |
| License: | MIT |
| Last Updated: | Dec 26, 2015 |
| Links: | GitHub · Packagist |
Maintainer: heivin
chinese-package
Common Chinese development resources in Laravel 常用中文开发资源: 省市县区 地图数据
Province
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
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
- 电话区号
- 身份证识别
- IP段
- 经纬度
Related Packages
salibhdr/typhoon-iran-cities
A laravel package for importing all regions such as provinces, counties, cities,...
24,863
64
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| 0.1 | >=5.3.0 | MIT |