Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/alhazmy13/saudi-id-validator
- Owner: alhazmy13
- License: mit
- Created: 2017-10-05T14:52:45.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-04-22T11:44:16.000Z (8 months ago)
- Last Synced: 2024-05-01T15:29:19.893Z (8 months ago)
- Topics: c-plus-plus, csharp, dart, golang, java, javascript, kotlin, php, python, ruby, saudi, saudi-id-validator, scala, sql, swift, typescript, validator, visual-basic
- Language: Swift
- Homepage: http://alhazmy13.net
- Size: 41 KB
- Stars: 77
- Watchers: 11
- Forks: 36
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/)