PHP code example of kop / yii2-turbosms

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

    

kop / yii2-turbosms example snippets


return [
    ...
    'components' => [
        ...
        'sms' => [
            'class' => '\kop\y2ts\TurboSMS',
            'username' => '<<< YOUR USERNAME HERE >>>'
            'password' => '<<< YOUR PASSWORD HERE >>>',
            'alphaName' => 'MyWebsite',
        ]
        ...
    ]
    ...
];

Yii::$app->sms->send(['+380501234567', '+380502345678'], 'Hello world!');
 php composer.phar