SMS Sender
This extension for send SMS to all number in Thailand, (*1)
Installation
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist katanyoo/yii2-sms-sender "*"
or add, (*4)
"katanyoo/yii2-sms-sender": "*"
to the require section of your composer.json
file., (*5)
Usage
To use this extension, simply add the following code in your application configuration:, (*6)
return [
//....
'components' => [
'smsSender' => [
'class' => 'katanyoo\smssender\smsSender',
'provider_endpoint' => '<ENDPOINT>',
'username' => '<USERNAME>',
'password'=> '<PASSWORD>',
]
],
];
You can then send an sms as follows:, (*7)
Yii::$app->smsSender
->setMobileNo('08xxxxxxxx')
->setMessage('your message')
->send();