Download the PHP package kreative/sendmode without Composer
On this page you can find all versions of the php package kreative/sendmode. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kreative/sendmode
More information about kreative/sendmode
Files in kreative/sendmode
Package sendmode
Short Description Simple PHP library to help leverage the Sendmode API.
License GPL-3.0
Homepage https://github.com/kreative/sendmode
Informations about the package sendmode
Sendmode
Simple PHP library to help leverage the Sendmode API. Sendmode are a 100% Irish owned, multi-award winning Bulk Text provider.
The Sendmode library features the following functionality
- Send SMS (with/without schedule)
- Send Batch SMS (with/without schedule)
- Get Balance
- Get Delivery Report
Please visit Sendmode for more details of their services.
Installation
Manual Install
Include the lib/sendmode.php
file in your project.
or
Automatic Install via Composer composer require kreative/sendmode
Quick Start
Sending a SMS via the Sendmode API is as simple as
Usage
Instantiation
Class Instantiation requires a Sendmode username, password, Sender ID with an optional return format.
Send a single SMS immediately
Sending a SMS immediately via the send() method. The Customer ID is an optional argument.
Send a single SMS at a scheduled time
Sending a SMS at a scheduled time of your choosing via the send() method. The Customer ID is an optional argument. Both the date & time arguments are required.
Send SMS to multiple recipients immediately
Sending a SMS immediately via the sendbatch() method. Phone numbers should be an array of correctly formatted numbers.
Send SMS to multiple recipients at a scheduled time
Sending a SMS to multiple recipients at a scheduled time of your choosing via the sendbatch() method. Phone numbers should be an array of correctly formatted numbers. In order to schedule the delivery both the date & time arguments are required.
Retrieving a delivery report
You can retrieve the delivery status of a SMS via the getdeliveryreport() method using the UID (customerID) defined at the time of sending the SMS.
Retrieving your account balance
Your account balance (SMS credits) can be retrieved via the getbalance() method.
License
Licensed under GPL v.3 (tldr)