Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Phone Number (field)

Security covered Under active development 1,804 sites

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)

Ask your assistant about Phone Number (field)

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

1 tracked project depends on this one

Activity

Tracked releases
10
Tracked since
Mar 2023
Latest release
6 months ago
Releases (12 mo)
1
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
2.0.0-alpha9 Pre-release 10–11 Mar 31, 2026
2.0.0-alpha8 Pre-release 9–11 Mar 28, 2025
2.0.0-alpha7 Pre-release 9–10 Jul 19, 2024
2.0.0-alpha6 Pre-release 9–10 Apr 24, 2024
2.0.0-alpha5 Pre-release 9–10 Oct 24, 2023
2.0.0-alpha4 Pre-release 9–10 Aug 22, 2023
2.0.0-alpha3 Pre-release 9–10 Aug 7, 2023
2.0.0-alpha2 Pre-release 9–10 Aug 7, 2023
2.0.0-alpha1 Pre-release 9–10 Mar 3, 2023
2.0.x-dev Dev 10–11 Mar 3, 2023