yetopen/yii2-sms-aruba

Sending SMS via Aruba api

Installs: 34

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Type:yii2-extension

v0.1.2 2021-09-30 09:12 UTC

This package is auto-updated.

Last update: 2024-01-29 04:05:52 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 ()
        '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
);