elratauru/validate-ci
Composer 安装命令:
composer require elratauru/validate-ci
包简介
Uruguayan ID Validation for PHP
README 文档
README
This library validates Cedulas de Identidad (english: ID Cards) from Uruguay.
Getting Started
Just install this library and call the class over a variable. It will return if true or false depending on the validation.
Installing
Using Composer, run:
$ composer require elratauru/validate-ci
Manually:
Copy the folder validate-ci to your project folder (I recommend using a subfolder for libraries) and require the Validator.php file.
Basic Usage
use ValidateCI\Validator;
//Create a new Validator.
$validator = new Validator();
$validation = $validator->validate('1.234.567-8');
You can check the tests/index.php for more information.
Built With
Authors
- Alfonso Carvallo - The answers you seek, lie within
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the license.md file for details
Acknowledgments
- Wikipedia, has a decent explanation of how the ID Card is validated.
- Picandocodigo for inspiration.
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-08-16