yetopen/yii2-sms-aruba

Sending SMS via Aruba api

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Type:yii2-extension

dev-master 2021-04-19 08:32 UTC

This package is not auto-updated.

Last update: 2021-05-04 06:52:23 UTC


README

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 ()
    ],

Usage

You can send SMS by calling sendSms:

Yii::$app->smsaruba->sendSms(
    ['+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
);