mrssoft/yii2-mts-communicator

Extension for sending SMS through MTS Communicator M2M API

2.0.2 2019-12-04 07:35 UTC

This package is auto-updated.

Last update: 2024-12-04 19:33:39 UTC


README

Extension for sending SMS through MTS Communicator M2M API

Latest Stable Version PHP Total Downloads

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']);