elratauru / validate-ci
Uruguayan ID Validation for PHP
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/elratauru/validate-ci
Requires
- php: ^5.5 || ^7.0
This package is not auto-updated.
Last update: 2026-01-04 12:03:06 UTC
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.