rbt / yii2-rbtsms
RBT SMS Component
Package info
github.com/anilkumar-vakkalagadda/RBTSMS
Type:yii2-extension
pkg:composer/rbt/yii2-rbtsms
1.1.0
2017-09-06 12:31 UTC
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2026-03-15 10:43:11 UTC
README
RBT SMS Component
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist rbt/yii2-rbtsms "*"
or add
"rbt/yii2-rbtsms": "*"
to the require section of your composer.json file.
Configuration
To use this extension, you have to configure the Connection class in your application configuration:
return [ //.... 'components' => [ 'sms' => [ 'class' => '\rbt\sms\Sms', 'APIKEY' => 'apikey', 'SENDER_NAME' => 'sms sender name', 'SMS_URL'=>'sms service url' ], ] ];
Usage
Once the extension is installed, simply use it in your code by :
<?= \rbt\sms\Sms::SmsSend($phone_number,$message); ?>```