Skip to content

Latest commit

 

History

History
13 lines (12 loc) · 360 Bytes

IdentityID.md

File metadata and controls

13 lines (12 loc) · 360 Bytes

身份标识 Identity ID

// 解析中国身份证号码
$ID = IdentityHelper::parseChineseID();
$passed = $ID->validateIDCard($pid);
$area = $ID->getArea($pid);
$gender = $ID->getGender($pid);
$birthday = $ID->getBirth($pid);
$age = $ID->getAge($pid);
$constellation = $ID->getConstellation($pid);
文档 https://github.com/douyasi/identity-card