yetopen / yii2-sms-aruba
Sending SMS via Aruba api
Installs: 46
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- ext-curl: *
- yetopen/yii2-sms-sender-interface: ^0.1.1
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2024-10-29 06:12:35 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 );