This project is not covered by Drupal’s security advisory policy.

Sends SMS through Corbit SMS, an SMS gateway in Saudi Arabia, for SMS Framework 4 and Notifier.

SMS Framework 4 sends messages through Symfony Notifier transports. This module adds a corbit:// transport and a settings page, so site owners do not need to edit YAML files.

Features

  • Settings page: paste the Corbit SMS API token, pick the sender name from the approved sender names on your account, see the balance, and send a test SMS.
  • Works with no extra configuration: when SMS Framework has no transport yet, Corbit SMS is used.
  • The API token can also be kept in settings.php, or set in a DSN (corbit://TOKEN@default?from=SENDER).
  • Mobile numbers are read the same way as the Corbit SMS app: international format, Saudi local numbers, Arabic-Indic digits. Numbers that could reach the wrong person are rejected and nothing is sent.
  • Clear error messages for a rejected token, low balance, a sender name that is not approved, duplicates and rate limits. The token never appears in messages or logs.

Requirements

  • Drupal 11.4 or 12, PHP 8.3 or later.
  • SMS Framework 4.
  • A Corbit SMS account with an API token and an approved sender name.

Installation

SMS Framework 4 needs drupal/another_entity_iterator, which only has an alpha release, so require it with the module:

composer require 'drupal/another_entity_iterator:^1@alpha' drupal/corbit_sms
drush en corbit_sms

Then go to Configuration » Web services » Corbit SMS.

Support

Use the issue queue, or contact Corbit SMS at corbit.sa.

Project information

Releases