rbt/yii2-rbtsms

RBT SMS Component

1.1.0 2017-09-06 12:31 UTC

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); ?>```