PHP code example of amiraghaee / rahyabsms

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

    

amiraghaee / rahyabsms example snippets


composer 

RAHYAB_SMS_USERNAME="your-account-username"
RAHYAB_SMS_PASSWORD="your-account-password"
RAHYAB_SMS_SHORTCODE="your-shortcode"

 use AmirAghaee\rahyabsms;
 

Rahyabsms::send('09xxxxxxxxx','Hello World!');

$numbers = [
        '09xxxxxxxx1',
        '09xxxxxxxx2',
        '09xxxxxxxx3'
    ];
Rahyabsms::sendAll($numbers, 'Hello World!');

Rahyabsms::getCredit();

Rahyabsms::GetExpireDate();

RAHYAB_SMS_ENABLE_LOGS=true

php artisan migrate

namespace AmirAghaee\rahyabsms\Models;

SmsLog::get();