PHP code example of fgh151 / yii2-epochta

1. Go to this page and download the library: Download fgh151/yii2-epochta 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/ */

    

fgh151 / yii2-epochta example snippets


$gate = new smsGate()
$gate->registerSender('testName');

$gate = new smsGate()
$gate->createAddressBook('test address book');

$gate = new smsGate()
$gate->addPhoneToBook(1, '79010000002', 'Сергей;Вершинин;');

$gate = new smsGate()
$gate->testCampaign("testName", "Тестируем отправку смс сообщения через ePochta SMS", 1);

$gate = new smsGate()
$gate->createCampaign("testName", "Тестируем отправку смс сообщения через ePochta SMS", 1);

$gate = new smsGate()
$gate->getStatus(1);

php composer.phar 
config/web.php
[backend|frontend|common]/config/main.php