2017 © Pedro Peláez
 

library id-card

image

leonis/id-card

  • Sunday, October 8, 2017
  • by yangliulnn
  • Repository
  • 1 Watchers
  • 8 Stars
  • 140 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 6 Versions
  • 10 % Grown

The README.md

StyleCI Build Status Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version Total Downloads License, (*1)

IDCard

身份证号校验及信息获取, (*2)

数据来源

http://www.mca.gov.cn/article/sj/xzqh, (*3)

更新时间:2019年10月, (*4)

安装

$ composer require leonis/id-card

使用

$idCard = new \Leonis\IDCard\IDCard($idCardNumber);

$idCard->check();           // 验证身份号 return bool
$idCard->checkAreaCode();   // 验证行政区划代码 return bool
$idCard->checkBirthday();   // 验证生日 return bool
$idCard->checkCode();       // 验证校验码 return bool
$idCard->address();         // 获取地址 return string
$idCard->province();        // 获取省 return string
$idCard->city();            // 获取市 return string
$idCard->zone();            // 获取区 return string
$idCard->birthday();        // 获取生日 return string
$idCard->year();            // 获取年 return int
$idCard->month();           // 获取月 return int
$idCard->day();             // 获取日 return int
$idCard->age();             // 获取年龄 return int
$idCard->sex();             // 获取性别 return string
$idCard->constellation();   // 获取星座 return string
$idCard->zodiac();          // 获取属相 return string

手动更新数据

php vendor/leonis/id-card/data/query.php

License

MIT, (*5)

The Versions

08/10 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Avatar yangliulnn

19/09 2017

2.0.2

2.0.2.0

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Avatar yangliulnn

07/08 2017

2.0.1

2.0.1.0

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Avatar yangliulnn

07/08 2017

dev-PHP5.6

dev-PHP5.6

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Avatar yangliulnn

07/08 2017

1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Avatar yangliulnn

07/08 2017

2.0.0

2.0.0.0

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Avatar yangliulnn