Skip to content

D4H/php-world-text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

World-Text SDK for PHP

Build Status Latest Stable Version License

PHP SDK for World Text SMS Text Messaging

Installation

composer require d4h/world-text

API Documentation

World Text SMS API is documented here: World Text HTTP REST API

Introduction

Send an SMS Text Message

$id = 'XXXXXX'; // Your Account ID
$apiKey = 'XXXXXX'; // Your secret API Key

$sms = WorldText\SmsClient::create($id, $apiKey);

try {
    $info = $sms->send('447989000000', 'Example message');
} catch (Exception $e) {
    echo 'Caught exception: ', $e->getMessage(), "\n";
}

Credits

Sponsored by D4H.