PHPackages                             world-text/world-text - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. world-text/world-text

ActiveLibrary[API Development](/categories/api)

world-text/world-text
=====================

PHP Helper library for World-Text API

071[3 issues](https://github.com/m-r-h/World-Text-PHP/issues)PHP

Since Oct 14Pushed 12y ago1 watchersCompare

[ Source](https://github.com/m-r-h/World-Text-PHP)[ Packagist](https://packagist.org/packages/world-text/world-text)[ RSS](/packages/world-text-world-text/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

World-Text-PHP
==============

[](#world-text-php)

PHP Helper Library for World Text SMS Text Messaging

Installation
------------

[](#installation)

You can install **World-Text-PHP** by downloading the source.

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

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

```

\[Click here to download a ZIP of the source\] () which includes all dependencies.

API Documentation
-----------------

[](#api-documentation)

World Text SMS API is documented here: [World Text HTTP REST API](http://www.world-text.com/docs/interfaces/HTTP/)

PHP Helper Library Documentation is here: [World Text PHP Helper Class](http://www.world-text.com/docs/libs/php/)

Introduction
------------

[](#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.

The classes are as follows:

- 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](http://www.world-text.com/docs/libs/php/)to get the details on the classes and methods, and how to get started with **World-Text-PHP**

Quick Intro
-----------

[](#quick-intro)

### Send an SMS Text Message

[](#send-an-sms-text-message)

```
