Skip to content
This repository has been archived by the owner on May 5, 2020. It is now read-only.

Latest commit

 

History

History
40 lines (26 loc) · 858 Bytes

README.md

File metadata and controls

40 lines (26 loc) · 858 Bytes

SMS Broadcast - PHP API

Who should use this library?

This class is for PHP applications wanting to utilise the SMS Broadcast SMS gateway.

Using this class you can:

  • Check SMS credit balance of an account.
  • Send SMSs to single and multiple recipients.

Todo:

  • Message Status Updates
  • Inbound SMS Messages

Usage

<?php
// Initialise API object with username and password.
$api = new smsbroadcastau($username, $password);

// Check account balance.
$available_credits = $api->checkBalance();

// Send an SMS.
$api->addRecipient('0400000000');
$api->message = 'Message to send to recipients';
$api->sender = 'SMS API';
$api->send();

License

Distributed under MIT license. See LICENSE for details.