yetopen/yii2-sms-aruba Sending SMS via Aruba api

Sending SMS via Aruba api

  1. Installation
  2. Configuration
  3. Usage

Sending SMS via Aruba SMS.

Installation

The preferred way to install this extension is through composer.

Either run php composer.phar require --prefer-dist yetopen/yii2-sms-aruba "@dev" or add "yetopen/yii2-sms-aruba": "@dev" to the require section of your composer.json file.

Configuration

In the application configuration, components section, add the following:

    'smsaruba' => [
        'class'     => yetopen\smsaruba\SmsAruba::class,
        'username'  => 'MyUsername',    // ArubaSMS username (Smsxxx)
        'password'  => 'MyPassword',    // ArubaSMS password ()
        'senderName' => 'Sender',       // The default sender name
    ],

Usage

You can send SMS by calling send:

Yii::$app->smsaruba->send(
    ['+393344556677'],      // Enter the number(s) you want to send the message to; (the prefix is not necessary)
    'Hi, this is a test!'   // The message to send
);
0 0
1 follower
34 downloads
Yii Version: 2.0
License: GPL-2.0
Category: Others
Developed by: Maxxer
Created on: Apr 19, 2021
Last updated: (not set)
Packagist Profile
Github Repository

Related Extensions