This module helps in entering and validating international phone numbers on your Drupal site. It uses a JavaScript plugin to provide features for international number input.
Drupal module for entering and validating international telephone number.
Based on/uses the Javascript plugin intl-tel-input by jackocnr
Attention
Version >= 4.x
Since the module requires an external library, Composer must be used.
composer require "drupal/phone_international"
Manual Version
Download it from the release page and place it in Drupal's library folder.
Composer Version
It's recommended to use asset-packagist to install JavaScript libraries.
Check next steps:
-
Add the Composer Installers Extender PHP package by oomphinc to your project's root composer.json file, by running the following command:
composer require oomphinc/composer-installers-extender -
Add Asset Packagist to the "repositories" section of your project's root composer.json.
{ "type": "composer", "url": "https://asset-packagist.org" } -
Ensure that NPM and Bower assets are registered as new "installer-types" and, in addition to type:drupal-library, they are registered in "installer-paths" to be installed into Drupal's /libraries folder, within the "extra" section of your project's root composer.json file.
"extra": { "installer-types": [ "npm-asset", "bower-asset" ], "installer-paths": { "web/libraries/{$name}": [ "type:drupal-library", "type:npm-asset", "type:bower-asset" ] } } -
You may now require libraries from NPM or Bower via Composer on the command line:
composer require "npm-asset/intl-tel-input:^25.3"
Ask your assistant about International Phone
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
- field Drupal core
Required by
1 tracked project depends on this one
- Commerce Opayo Pi 28 sites