From 403c5f74cac0c9c4f326380d7c8bbe0c60083e33 Mon Sep 17 00:00:00 2001 From: Bill Li Date: Mon, 20 Nov 2017 09:17:33 +0800 Subject: [PATCH] Update README.md --- README.md | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 7676a19..1e47776 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,11 @@ + China (region) citizen ID card tool ------------------------ > China (Mainland) ID card package, the data from the national standard `GB / T 2260-2007` (People's Republic of China administrative divisions code standard). -### Installing +## Installing ```bash @@ -12,7 +13,10 @@ China (region) citizen ID card tool ``` -### Instructions +## Instructions +A component based on People's Republic of China citizen ID card to obtain the user information.This works for any php framework, but only if the php version is greater than 7.1. + +## Useing #### Verify your Chinese ID card ```php @@ -70,13 +74,13 @@ China (region) citizen ID card tool ``` ### Api -- `getArea():string` 获取地区 -- `getConstellation():string` 获取星座 -- `getAge():int` 获取年龄 -- `getBirthday(string $foramt = 'Y-m-d'):string` 获取生日 -- `getGender():string` 获取性别 -- `getCounty():string|null` 获取县城 -- `getCity():string|null` 获取城市 -- `getProvince():string|null` 获取省 -- `toArray():array` 全部信息 -- `toJson(int $option):string` 全部信息 +- getArea():string `获取地区` +- getConstellation():string `获取星座` +- getAge():int `获取年龄` +- getBirthday(string $foramt = 'Y-m-d'):string `获取生日` +- getGender():string `获取性别` +- getCounty():string|null `获取县城` +- getCity():string|null `获取城市` +- getProvince():string|null `获取省` +- toArray():array `全部信息` +- toJson(int $option):string `全部信息`