Skip to content

API wrapper for TM4B, written in PHP. Allows you to send SMS messages to mobile phones from your website.

License

Notifications You must be signed in to change notification settings

nicoSWD/TM4B-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TM4B API Wrapper written in PHP

(API Version 2.1)

A powerful PHP class for TM4B's API (version 2.1). Supports all features that TM4Bs API provides.

Only requires PHP >=5.3! HTTPS requests are supported natively if necessary!

That's all!

Take a look at the Wiki and TM4B's API documentation to get started.

Pull requests are welcome! Fix, improve, suggest!

You can also find me on Twitter: @nicoSWD

Examples

require 'TM4B/Autoloader.php';
$tm4b = new TM4B\API($username, $password);
$tm4b->setFrom('Nico');

// Broadcast an SMS message:
$response = $tm4b->broadcast('34612345678', 'Hi there');

// Check a message's status:
$status = $tm4b->checkStatus($response['broadcastID']);

// Check remaining credits:
$credits = $tm4b->checkCredit();

// ...

License

Copyright (C) 2012 Nicolas Oelgart

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

About

API wrapper for TM4B, written in PHP. Allows you to send SMS messages to mobile phones from your website.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages