PHP code example of richweber / yii2-alpha-sms

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

    

richweber / yii2-alpha-sms example snippets


'components' => [
    ...
    'alphaSms' => [
        'class' => 'richweber\alpha\sms\AlphaSms',
        'sender' => 'AlphaName',
        'login' => '380505550505',
        'password' => 'password',
        // or
        // 'key' => '184452c06ft1e2f548aa18243fb6226h79764563',
    ],
    ...
],

$data = [
    'text' => 'Text message',
    'recipient' => 380505550505,
    'sender' => 'AlphaName',
    'type' => 0,
    'date_beg' => '1409770256',
    'date_end' => '1409770291',
    'url' => 'http://mysite.com',
];

php composer.phar