Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Phone Number (field)

1,582 sites Security covered
View on drupal.org

This module provides a field type for storing and validating international phone numbers, including optional extensions. It offers a country selector for easier input and can integrate with SMS Framework and Two-factor Authentication modules to verify phone numbers.

Phone Number is a field type that provides flexible validation and intelligent
storage of international telephone numbers through an intuitive UI. Users need
not enter their country-code - there's a nice little country-selector for that.
Telephone numbers of all types are supported and type validation can be
configured per field-instance. Phone Number fields also support (optionally)
collecting and storing extension along with the main phone number.

Validation is done using libphonenumber-for-php, the PHP version of Google's
library for parsing, formatting, and validating international phone numbers.
See https://github.com/giggsey/libphonenumber-for-php for more information.

Also included is the sub-module SMS Phone Number. SMS Phone Number exposes a
phone number field with SMS-capabilities. SMS phone number fields integrate
with the SMS Framework and Two-factor Authentication (TFA) modules. When paired
with the SMS Framework module, SMS Phone Number offers in-line number
verification via an intuitive, ajax-powered field widget. Users can enter and
verify ownership of their SMS-capable phone number in one step. Verification
codes are hashed and tokenized in the database.

Sub-module SMS Phone Number is untested and can contain bugs!

This module is a fork of the excellent Mobile Number module
(https://www.drupal.org/project/mobile_number), and aims to be a more
flexible solution, supporting international telephone numbers of all types, with
or without SMS-capabilities.

Integrates with:

- Feeds
- Migrate
- Telephone
- Devel
- SMS Framework
- TFA

Installation:

- Using composer, install as you would normally install a contributed Drupal
module.
- For SMS number verification, install the included SMS Phone Number
sub-module. Then install and configure the SMS Framework module with an SMS
gateway. (Untested)
- For two factor authentication, complete step two and then install the
Two-factor Authentication (TFA) module. (Untested)

Activity

Total releases
2
First release
Mar 2025
Latest release
3 months ago
Releases (12 mo)
1
Maintenance
Active

Releases

Version Type Release date
2.0.0-alpha9 Pre-release Mar 31, 2026
2.0.0-alpha8 Pre-release Mar 28, 2025