Drupal is a registered trademark of Dries Buytaert
Drupal 10.6.14 Update released for Drupal core (10.6.14)! Drupal 11.3.16 Update released for Drupal core (11.3.16)! Entity Usage 8.x-2.2 Minor update available for module entity_usage (8.x-2.2). Seven 2.0.0-beta8 New beta version released for theme seven (2.0.0-beta8). Seven 1.1.0-beta4 New beta version released for theme seven (1.1.0-beta4). Entity Usage 5.0.0-beta5 New beta version released for module entity_usage (5.0.0-beta5). Custom Field 4.0.9 Minor update available for module custom_field (4.0.9). Custom Field 5.0.0 Major update available for module custom_field (5.0.0). Layout Builder Restrictions 3.0.5 Module layout_builder_restrictions updated after 12 months of inactivity (3.0.5)... Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Saudi ID Validator validates Saudi National ID and Iqama (residency) numbers entirely offline — no external service is called. It checks the length and shape, distinguishes a citizen ID from an Iqama by its leading digit, and verifies the official Luhn checksum.

Features

  • Offline validation of Saudi National ID and Iqama numbers (format, type and checksum).
  • A reusable, dependency-injected validation service for your own code.
  • A Form API #element_validate callback for form fields.
  • An entity/typed-data constraint (SaudiId) so stored values are validated wherever they are written.
  • Type detection: citizen vs. resident.

Post-Installation

Enable the module and use the saudi_id_validator.validator service, the Form API element validator, or the SaudiId constraint on a field. No configuration is required.

Additional Requirements

Drupal core only, no contributed dependencies and no network access. PHP 8.3 or newer. Compatible with Drupal 10.3+ and Drupal 11.

Activity

Total releases
2
First release
Jul 2026
Latest release
43 minutes ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
1.0.1 Stable Jul 23, 2026
1.0.0 Stable Jul 23, 2026