PHP SDK for World Text SMS Text Messaging
composer require d4h/world-text
World Text SMS API is documented here: World Text HTTP REST API
$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";
}
Sponsored by D4H.