Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alhazmy13/saudi-id-validator

Saudi-ID-Validator (Swift, Kotlin, Java, Go, JS, Python, TypeScript, PHP, Scala, ruby, c#, vb, SQL, C++, SQL and Dart)
https://github.com/alhazmy13/saudi-id-validator

c-plus-plus csharp dart golang java javascript kotlin php python ruby saudi saudi-id-validator scala sql swift typescript validator visual-basic

Last synced: 10 days ago
JSON representation

Saudi-ID-Validator (Swift, Kotlin, Java, Go, JS, Python, TypeScript, PHP, Scala, ruby, c#, vb, SQL, C++, SQL and Dart)

Awesome Lists containing this project

README

        

# Saudi ID Validator

Function to validate Saudi id numbers, written in multiple langauges ([TypesSript](https://github.com/alhazmy13/Saudi-ID-Validator), [Scala](https://github.com/alhazmy13/Saudi-ID-Validator), [Python](https://github.com/alhazmy13/Saudi-ID-Validator), [PHP](https://github.com/alhazmy13/Saudi-ID-Validator), [Java](https://github.com/alhazmy13/Saudi-ID-Validator), [Kotlin](https://github.com/alhazmy13/Saudi-ID-Validator), [JavaScript](https://github.com/alhazmy13/Saudi-ID-Validator), [Swift](https://github.com/alhazmy13/Saudi-ID-Validator), [Ruby](https://github.com/alhazmy13/Saudi-ID-Validator),[Go](https://github.com/alhazmy13/Saudi-ID-Validator), [C#](https://github.com/alhazmy13/Saudi-ID-Validator), [VB](https://github.com/alhazmy13/Saudi-ID-Validator)).

# How to use
It's a small function `check(idNumber)`, return `-1` if the id is not correct, `1` for Saudi id OR `2` for Non-Saudis.

# Credit

[Abdul-Aziz Al-Oraij](http://aziz.oraij.com/)