rbt / yii2-rbtsms
RBT SMS Component
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2025-06-08 06:43:48 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); ?>```