Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Spanish document id validate #740

Closed
Tommytrg opened this issue Oct 25, 2017 · 3 comments
Closed

Feature request: Spanish document id validate #740

Tommytrg opened this issue Oct 25, 2017 · 3 comments

Comments

@Tommytrg
Copy link

Hello!

The document id in Spain is called DNI. It would be nice if isDNI method will be added. DNI is compose by 8 numbers and 1 letter at the end. Letter is calculated with module operation of numbers sum.

Can I implement it?

@Tommytrg Tommytrg changed the title Feature request: spanish document id validate Feature request: Spanish document id validate Oct 25, 2017
@chriso
Copy link
Collaborator

chriso commented Nov 14, 2017

Sure, I'd be happy to accept a PR.

@profnandaa
Copy link
Member

profnandaa commented Dec 26, 2017

@Tommytrg - can expound on this?

Letter is calculated with module operation of numbers sum.

Any documentation that we can go through?

@Tommytrg
Copy link
Author

Sure, you can found more infomation about it in the official government page.

http://www.interior.gob.es/en/web/servicios-al-ciudadano/dni/calculo-del-digito-de-control-del-nif-nie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants