Skip to content

A Simple PHP library to Validate Uruguayan ID Cards (Cédula de Identidad)

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
license.md
Notifications You must be signed in to change notification settings

Elratauru/validate-ci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Validate C.I.

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.

About

A Simple PHP library to Validate Uruguayan ID Cards (Cédula de Identidad)

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
license.md

Stars

Watchers

Forks

Packages

No packages published

Languages