mrssoft / yii2-mts-communicator
Extension for sending SMS through MTS Communicator M2M API
Installs: 76
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Type:yii2-extension
Requires
- php: >=7.1
- yiisoft/yii2: *
README
Extension for sending SMS through MTS Communicator M2M API
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist mrssoft/yii2-mts-communicator "*"
or add
"mrssoft/yii2-mts-communicator": "*"
to the require section of your composer.json
file.
Usage
Configuration:
// API MTS Communicator version 2.1 'components' => [ ... 'mts' => [ 'class' => 'mrssoft\mts\Communicator', 'token' => '', 'naming' => 'BRAND' ] .... ]
Usage:
$mts = new Communicator(); $mts->sendMessage('Message', '79830000000'); $mts->sendMessages('Message', ['79830000000', '79830000001']);