PHP code example of yetopen / yii2-sms-aruba

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

    

yetopen / yii2-sms-aruba example snippets


    'smsaruba' => [
        'class'     => yetopen\smsaruba\SmsAruba::class,
        'username'  => 'MyUsername',    // ArubaSMS username (Smsxxx)
        'password'  => 'MyPassword',    // ArubaSMS password ()
        'senderName' => 'Sender',       // The default sender name
    ],

Yii::$app->smsaruba->send(
    ['+393344556677'],      // Enter the number(s) you want to send the message to; (the prefix is not necessary)
    'Hi, this is a test!'   // The message to send
);

php composer.phar