PHP code example of cloudrebue / api

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

    

cloudrebue / api example snippets

 php

//include if your project wasent initialized with composer prior to downloading.
//ensure path to vendor is correct
Object
$sms= new Sms("CLOUD_REBUE", "0708361797", "Test Message 1", "101");

//send Sms object
$response = $instance->sendSMS($sms);

var_dump($response);

 php

//include if your project wasent initialized with composer prior to downloading.
//ensure path to vendor is correct
e Sms Object(s)
$sms1= new Sms("CLOUD_REBUE", "0708361797", "Test Message 1", "101");
$sms2 = new Sms("BizTxt", "0735343603"", "Test Message 2", "102");

//send Sms object
$response = $instance->sendBatchSMS($sms1, $sms2);

var_dump($response);