PHP code example of mobtexting / message-sdk

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

    

mobtexting / message-sdk example snippets



$token = "YYYYYY"; 

$client = new Mobtexting\Message\Client($token);
$message = $client->send(
  '1234567890', // Text this number
  array(
    'from' => 'MOBtxt',
    'text' => 'Hello from MOBtexting!',
    'service' => 'T'
  )
);

print_r($message->json());