PHP code example of noetikosgroup / yii2-smsbat

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

    

noetikosgroup / yii2-smsbat example snippets



...
    'components' => [
        'smsbat' => [
            'class' => 'noetikosgroup\smsbat\SmsBat',
            'login' => 'your_login',
            'password' => 'your_password',
            'from' => 'your_name',
        ],
        ...
    ],
...


...
    'components' => [
        'smsbat' => [
            'class' => 'noetikosgroup\smsbat\SmsBat',
            'login' => 'your_login',
            'password' => 'your_password',
            'from' => 'your_name',
            'saveToDb' => true,
        ],
        ...
    ],
...

  Yii::$app->smsbat->send('+380XXXXXXXXX', 'test'); 

php composer.phar