You are here

README.txt in Mobile Number 7

Same filename and directory in other branches
  1. 8 README.txt
  2. 2.0.x README.txt
MOBILE NUMBER
-------------

CONTENTS OF THIS FILE
---------------------

 * Introduction
 * Requirements
 * Recommended Modules
 * Features
 * Integration (with other modules)
 * Installation

INTRODUCTION
------------

Mobile Number is a field type that provides mobile number validation and
verification, and can be used for two factor authentication. It works with
SMS Framework and TFA modules, respectively, and both features are optional.

The module differs from the Phone module in that it puts security and
authenticity first, and focuses on mobile numbers which therefore assumes sms
and smartphone capabilities by the user. The number is sanitized before saving,
country is validated, the number is validated to be a mobile number type,
allows uniqueness validation, and, if enabled, allows verifying number
ownership by the user. For verification, codes are hashed and tokenized in the
database. See the case for a dedicated mobile number field.
(https://www.drupal.org/node/2783505)

The module uses libphonenumber (developed by Google for use in Android) for
validation, and supports the mobile number formats of the countries listed
here (https://github.com/giggsey/libphonenumber-for-php/blob/master/src/
libphonenumber/ShortNumbersRegionCodeSet.php), which is basically all of them.


REQUIREMENTS
------------

This module requires the following modules:

 * Libraries (https://www.drupal.org/project/libraries)
 * OR Composer Manager (https://www.drupal.org/project/composer_manager)

And requires the following php library:
 * giggsey/libphonenumber-for-php (https://github.com/giggsey/libphonenumber-for-php)


RECOMMENDED MODULES
-------------------

 * SMS Framework (https://www.drupal.org/project/smsframework):
 * TFA (https://www.drupal.org/project/tfa):


FEATURES
--------

 * Mobile number validation
 * Mobile number verification
 * Uniqueness validation
 * Two factor authentication


INTEGRATION (WITH OTHER MODULES)
--------------------------------

 * Feeds
 * Rules
 * Webform
 * Telephone
 * Services
 * Devel
 * Views
 * TFA
 * SMS Framework


INSTALLATION
------------

 * Install as you would normally install a contributed Drupal module. See:
   https://drupal.org/documentation/install/modules-themes/modules-7
   for further information.
 * Download into your libraries folder the libphonenumber project under the
   name libphonenumber. Or, if drush is enabled, you can use drush
   libphonenumber-download command. The libarary can be install using
   Composer Manager as well.
 * For mobile number verification, download, enable, and configure SMS
   Framework. You will need to setup an SMS gateway, which will require
   setting up an account and paying fees on a 3rd party service, or use SMS
   Framework's default logger gateway for testing.
 * For two factor authentication, complete step 3 and download, enable, and
   configure TFA.

File

README.txt
View source
  1. MOBILE NUMBER
  2. -------------
  3. CONTENTS OF THIS FILE
  4. ---------------------
  5. * Introduction
  6. * Requirements
  7. * Recommended Modules
  8. * Features
  9. * Integration (with other modules)
  10. * Installation
  11. INTRODUCTION
  12. ------------
  13. Mobile Number is a field type that provides mobile number validation and
  14. verification, and can be used for two factor authentication. It works with
  15. SMS Framework and TFA modules, respectively, and both features are optional.
  16. The module differs from the Phone module in that it puts security and
  17. authenticity first, and focuses on mobile numbers which therefore assumes sms
  18. and smartphone capabilities by the user. The number is sanitized before saving,
  19. country is validated, the number is validated to be a mobile number type,
  20. allows uniqueness validation, and, if enabled, allows verifying number
  21. ownership by the user. For verification, codes are hashed and tokenized in the
  22. database. See the case for a dedicated mobile number field.
  23. (https://www.drupal.org/node/2783505)
  24. The module uses libphonenumber (developed by Google for use in Android) for
  25. validation, and supports the mobile number formats of the countries listed
  26. here (https://github.com/giggsey/libphonenumber-for-php/blob/master/src/
  27. libphonenumber/ShortNumbersRegionCodeSet.php), which is basically all of them.
  28. REQUIREMENTS
  29. ------------
  30. This module requires the following modules:
  31. * Libraries (https://www.drupal.org/project/libraries)
  32. * OR Composer Manager (https://www.drupal.org/project/composer_manager)
  33. And requires the following php library:
  34. * giggsey/libphonenumber-for-php (https://github.com/giggsey/libphonenumber-for-php)
  35. RECOMMENDED MODULES
  36. -------------------
  37. * SMS Framework (https://www.drupal.org/project/smsframework):
  38. * TFA (https://www.drupal.org/project/tfa):
  39. FEATURES
  40. --------
  41. * Mobile number validation
  42. * Mobile number verification
  43. * Uniqueness validation
  44. * Two factor authentication
  45. INTEGRATION (WITH OTHER MODULES)
  46. --------------------------------
  47. * Feeds
  48. * Rules
  49. * Webform
  50. * Telephone
  51. * Services
  52. * Devel
  53. * Views
  54. * TFA
  55. * SMS Framework
  56. INSTALLATION
  57. ------------
  58. * Install as you would normally install a contributed Drupal module. See:
  59. https://drupal.org/documentation/install/modules-themes/modules-7
  60. for further information.
  61. * Download into your libraries folder the libphonenumber project under the
  62. name libphonenumber. Or, if drush is enabled, you can use drush
  63. libphonenumber-download command. The libarary can be install using
  64. Composer Manager as well.
  65. * For mobile number verification, download, enable, and configure SMS
  66. Framework. You will need to setup an SMS gateway, which will require
  67. setting up an account and paying fees on a 3rd party service, or use SMS
  68. Framework's default logger gateway for testing.
  69. * For two factor authentication, complete step 3 and download, enable, and
  70. configure TFA.