d4h/world-text

PHP SDK for World-Text API

3.0.2 2020-07-29 00:34 UTC

This package is auto-updated.

Last update: 2024-11-29 06:22:01 UTC


README

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.