PHP code example of mrssoft / yii2-mts-communicator
1. Go to this page and download the library: Download mrssoft/yii2-mts-communicator library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mrssoft / yii2-mts-communicator example snippets
// API MTS Communicator version 2.1
'components' => [
...
'mts' => [
'class' => 'mrssoft\mts\Communicator',
'token' => '',
'naming' => 'BRAND'
]
....
]
$mts = new Communicator();
$mts->sendMessage('Message', '79830000000');
$mts->sendMessages('Message', ['79830000000', '79830000001']);
php composer.phar