Download the PHP package ofcold/identity-card without Composer
On this page you can find all versions of the php package ofcold/identity-card. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package identity-card
China (region) citizen ID card tool
Simplified Chinese Documentation
China (Mainland) ID card package, the data from the national standard
GB/T 2260-2007
(People's Republic of China administrative divisions code standard).
Other Language
Installing
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
Useing in Laravel Validation
Multi-language add
Please enter a valid Id Card
to your json language package.
Verify your Chinese ID card
OR test file.
Results:
Api
- getArea() : string
Get Area
- getConstellation() : string
Get constellation
- getZodiac() : string
Get zodiac
- getAge() : int
Get age
- getBirthday(string $foramt = 'Y-m-d') : string
Get birthday
- getGender() : string
Get gender
- getCounty() : string|null
Get county
- getCity() : string|null
Get city
- getProvince() : string|null
Get province
- toArray() : array
Get all information.
- toJson(int $option) : string
Json format all information
- __get() : mixed
- __toString() : toJson
CHANGELOG
V3.0.0
- Added Laravel Rule.
V2.0.0
All versions of identity-card with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4|^8.0
The package ofcold/identity-card contains the following files
Loading the files please wait ....