Download the PHP package tm4b/tm4b-php without Composer
On this page you can find all versions of the php package tm4b/tm4b-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tm4b/tm4b-php
More information about tm4b/tm4b-php
Files in tm4b/tm4b-php
Package tm4b-php
Short Description PHP Client for using TM4B's REST API
License MIT
Homepage https://github.com/tm4b-com/tm4b-php
Informations about the package tm4b-php
Sign up for a TM4B account and visit our Developer Api for even more content.
TM4B PHP Client
This is the official PHP library for using the TM4B REST API. This SDK contains methods for easily interacting with the TM4B Messaging API. Below are examples to get you started. For additional examples, please see our official documentation at https://www.tm4b.com/en/sms-api/
Installation
The recommended way to install TM4B PHP is through
Composer. Require the tm4b/tm4b-php
package:
$ composer require tm4b/tm4b-php
Usage
Basic usage
You should always use Composer's autoloader in your application to automatically load your dependencies. All examples below assumes you've already included this in your file:
Initialize your TM4B Client with your TM4B API Key:
Quick Start
Here is a quick example:
POST /api/rest/v1/sms
Examples
Bulk SMS
Let's send the same SMS to 2 recipients.
Sandbox
Account
General Usage
All versions of tm4b-php with dependencies
php-http/guzzle6-adapter Version ^1.0 || ^2.0
zendframework/zend-diactoros Version ^1.7
webmozart/assert Version ^1.2