PHP code example of richbarrett / itagg-sdk-php

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

    

richbarrett / itagg-sdk-php example snippets




use richbarrett\itagg\send;

$send = new send('YOUR_USER','YOUR_PASSWORD');
$send->addTo('00000000000');
$send->setBody('Hello world');
$send->setFrom('iTagg SMS');

try {
 
  $response = $send->sendRequest();
  die('Success!');
 
} catch (\Exception $e) {
  
  die('Failed with error: '.$e->getMessage());
  
}