Download the PHP package heivin/chinese-package without Composer
On this page you can find all versions of the php package heivin/chinese-package. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download heivin/chinese-package
More information about heivin/chinese-package
Files in heivin/chinese-package
Download heivin/chinese-package
More information about heivin/chinese-package
Files in heivin/chinese-package
Vendor heivin
Package chinese-package
Short Description Common Chinese development resources in Laravel
License MIT
Homepage https://github.com/heivin/chinese-package
Package chinese-package
Short Description Common Chinese development resources in Laravel
License MIT
Homepage https://github.com/heivin/chinese-package
Please rate this library. Is it a good library?
Informations about the package chinese-package
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段
- 经纬度
All versions of chinese-package with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.0
The package heivin/chinese-package contains the following files
Loading the files please wait ....