2017 © Pedro Peláez
 

library world-text

PHP Helper library for World-Text API

image

world-text/world-text

PHP Helper library for World-Text API

  • Monday, October 14, 2013
  • by m-r-h
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 3 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

World-Text-PHP

PHP Helper Library for World Text SMS Text Messaging, (*1)

Installation

You can install World-Text-PHP by downloading the source., (*2)

Once you have downloaded the library, put the World-Text-PHP folder into your project hierarchy and then include the library file:, (*3)

require_once('/path/World-Text-PHP/WorldText.php');

[Click here to download a ZIP of the source] (https://github.com/m-r-h/World-Text-PHP/zipball/master) which includes all dependencies., (*4)

API Documentation

World Text SMS API is documented here: World Text HTTP REST API, (*5)

PHP Helper Library Documentation is here: World Text PHP Helper Class, (*6)

Introduction

With the World-Text-PHP library, we've encapsulated our API into a number of objects. You don't need to be directly concerned with the API calls, or URLs, or parsing the JSON responses., (*7)

The classes are as follows:, (*8)

  • WorldText - The base class, containing the API calls and response processing
  • WorldTextAdmin - container for admin methods
  • WorldTextSms - Derived from WorldText and the container for sms methods
  • WorldTextGroup - Derived from WorldText and the container for group methods. Pre-populated with a group from your account on our servers and minimises calls to the API in the process.
  • wtException - adds a couple of methods for additional codes to the Exception class

See the World Text PHP Class Guide to get the details on the classes and methods, and how to get started with World-Text-PHP, (*9)

Quick Intro

Send an SMS Text Message

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

?>

Documentation

Full Documentation for World-Text-PHP is on our site, along with detailed API documentation and other libraries and languages., (*10)

Prerequisites

  • PHP >= 5.2.3

Feedback, Ideas and Issues

We would love to hear your ideas and feedback, or if you've added to, or modified this library. Report issues using Github Issue Tracker or email support@world-text.com., (*11)

The Versions

14/10 2013

dev-master

9999999-dev http://github.com/m-r-h/World-Text-PHP

PHP Helper library for World-Text API

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

api sms text world worldtext