PHP code example of smsalert / php-sdk

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

    

smsalert / php-sdk example snippets


composer 

$SMSALERT_USER = ''; //change here
$SMSALERT_PWD  = ''; //change here

$smsalert      = (new Smsalert())
		->authWithUserIdPwd($SMSALERT_USER,$SMSALERT_PWD);

$MOBILENO      = ''; //change here
$TEXT          = ''; //change here

$smsalert->setSender('CVDEMO')
         ->send($MOBILENO, $TEXT); 

$MOBILENO      = ''; //change here
$TEXT          = ''; //change here
$SCHEDULE      = ''; //change here

$smsalert->setSender('CVDEMO')
         ->send($MOBILENO, $TEXT, $SCHEDULE);