katanyoo / yii2-sms-sender
This extension for send SMS to all number in Thailand
Installs: 93
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2025-04-04 22:27:49 UTC
README
This extension for send SMS to all number in Thailand
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist katanyoo/yii2-sms-sender "*"
or add
"katanyoo/yii2-sms-sender": "*"
to the require section of your composer.json
file.
Usage
To use this extension, simply add the following code in your application configuration:
return [ //.... 'components' => [ 'smsSender' => [ 'class' => 'katanyoo\smssender\smsSender', 'provider_endpoint' => '<ENDPOINT>', 'username' => '<USERNAME>', 'password'=> '<PASSWORD>', ] ], ];
You can then send an sms as follows:
Yii::$app->smsSender ->setMobileNo('08xxxxxxxx') ->setMessage('your message') ->send();