Download the PHP package yangweijie/gb_tools without Composer
On this page you can find all versions of the php package yangweijie/gb_tools. 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 gb_tools
gbTools
国标工具用于验证或生成等
Installing
Usage
身份证
$a = new Yangweijie\GbTools\Gb('11643-1999');
$b = $a->isValid('440308199901101512'); //是否有效
var_dump($b);
var_dump($a->getInfo('440308199901101512')); // 获取信息
$c = $a->upgradeId('610104620927690'); // 15位升级
var_dump($c);
$d = $a->fakeId(); //伪造
var_dump($d);
法人和其他组织统一社会信用代码
$a = new Yangweijie\GbTools\Gb('32100-2015');
$b = $a->isValid('91120222MA06DG3067');
var_dump($b);
Contributing
You can contribute in one of three ways:
- File bug reports using the issue tracker.
- Answer questions or fix bugs on the issue tracker.
- Contribute new features or update the wiki.
The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.
算法
https://github.com/bluesky335/IDCheck
https://github.com/jxlwqq/id-validator
License
MIT
All versions of gb_tools with dependencies
PHP Build Version
Package Version
Requires
verbalexpressions/php-verbal-expressions Version
^1.0.0
The package yangweijie/gb_tools contains the following files
Loading the files please wait ....