PHP code example of pfinal / identity-card
1. Go to this page and download the library: Download pfinal/identity-card library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
pfinal / identity-card example snippets
inal\IdentityCard\IDCard;
//是否有效
$isPass = IDCard::validate('440105199101301233');
//生日
$birthday = IDCard::getBirthday('440105199101301233');
//性别
$gender = IDCard::getGender('440105199101301233');
//地区信息
//安装组件 composer