PHPackages                             kreative/sendmode - 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. kreative/sendmode

ActiveLibrary[API Development](/categories/api)

kreative/sendmode
=================

Simple PHP library to help leverage the Sendmode API.

v0.9(9y ago)171GPL-3.0PHP

Since Nov 4Pushed 9y ago1 watchersCompare

[ Source](https://github.com/kreative/sendmode)[ Packagist](https://packagist.org/packages/kreative/sendmode)[ Docs](https://github.com/kreative/sendmode)[ RSS](/packages/kreative-sendmode/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)DependenciesVersions (2)Used By (0)

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](http://www.sendmode.com/) for more details of their services.

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

[](#installation)

**Manual Install**Include the `lib/sendmode.php` file in your project.

or

**Automatic Install** via [Composer](https://packagist.org/packages/kreative/sendmode)composer require kreative/sendmode

Quick Start
-----------

[](#quick-start)

Sending a SMS via the Sendmode API is as simple as

```
// Instantiate the class
$sms = new Sendmode($username, $password, $senderid);

// Send SMS
$result = $sms->send($phonenumber, $message);
// API response is returned as a SimpleXML object in $result.
```

Usage
-----

[](#usage)

### Instantiation

[](#instantiation)

Class Instantiation requires a Sendmode username, password, Sender ID with an optional return format.

```
$username=''; // Your Sendmode Username.
$password=''; // Your Sendmode Password.
$senderid=''; // Sender ID SMS that is displayed to recipients.
$format='json|array'; // Optional return format. Default is SimpleXML object.

// Instantiate the class
$sms = new Sendmode($username, $password, $senderid, $format);
```

### Send a single SMS immediately

[](#send-a-single-sms-immediately)

Sending a SMS immediately via the send() method. The Customer ID is an optional argument.

```
// Instantiate the class
$sms = new Sendmode($username, $password, $senderid);

// Send a single SMS
$phonenumber=''; // Phone number in the correct format.
$message=''; // Message to send.
$customerid=''; // Optional message UID used to track delivery reports.

$result = $sms->send($phonenumber, $message, $customerid);
// API response is returned as a SimpleXML object in $result.
```

### Send a single SMS at a scheduled time

[](#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 &amp; time arguments are required.

```
// Instantiate the class
$sms = new Sendmode($username, $password, $senderid);

// Send Scheduled SMS
$phonenumber=''; // Phone number in the correct format.
$message=''; // Message to send.
$customerid=''; // Optional message UID used to track delivery reports.
$date=''; // in d/m/Y e.g. Feb 1st 2016 = 01/02/2016.
$time=''; // in H:i e.g. 1:15PM = 13:15.

$result = $sms->send($phonenumber, $message, $customerid, $date, $time);
// API response is returned as a SimpleXML object in $result.
```

### Send SMS to multiple recipients immediately

[](#send-sms-to-multiple-recipients-immediately)

Sending a SMS immediately via the sendbatch() method. Phone numbers should be an array of correctly formatted numbers.

```
// Instantiate the class
$sms = new Sendmode($username, $password, $senderid);

// Send Scheduled SMS
$phonenumbers=array(); // Array of Phone numbers in the correct format.
$message=''; // Message to send.

$result = $sms->sendbatch($phonenumber, $message);
// API response is returned as a SimpleXML object in $result.
```

### Send SMS to multiple recipients at a scheduled time

[](#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 &amp; time arguments are required.

```
// Instantiate the class
$sms = new Sendmode($username, $password, $senderid);

// Send Scheduled SMS to multiple recipients.
$phonenumbers=array(); // Array of Phone numbers in the correct format.
$message=''; // Message to send.
$date=''; // in d/m/Y e.g. Feb 1st 2016 = 01/02/2016.
$time=''; // in H:i e.g. 1:15PM = 13:15.

$result = $sms->sendbatch($phonenumber, $message, $customerid, $date, $time);
// API response is returned as a SimpleXML object in $result.
```

### Retrieving a delivery report

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

```
// Instantiate the class
$sms = new Sendmode($username, $password, $senderid);

$customerid=''; // Your UID Customer ID used in the original send request.

$result = $sms->getdeliveryreport($customerid);
// API response is returned as a SimpleXML object in $result.
```

### Retrieving your account balance

[](#retrieving-your-account-balance)

Your account balance (SMS credits) can be retrieved via the getbalance() method.

```
// Instantiate the class
$sms = new Sendmode($username, $password, $senderid);

$result = $sms->getbalance();
// API response is returned as a SimpleXML object in $result.
```

License
-------

[](#license)

Licensed under GPL v.3 [(tldr)](https://tldrlegal.com/license/gnu-general-public-license-v3-(gpl-3))

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3526d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/47357609?v=4)[Kreative](/maintainers/kreative)[@kreative](https://github.com/kreative)

---

Top Contributors

[![timoleary](https://avatars.githubusercontent.com/u/607152?v=4)](https://github.com/timoleary "timoleary (3 commits)")

---

Tags

smssms apisms-gateway

### Embed Badge

![Health badge](/badges/kreative-sendmode/health.svg)

```
[![Health](https://phpackages.com/badges/kreative-sendmode/health.svg)](https://phpackages.com/packages/kreative-sendmode)
```

###  Alternatives

[twilio/sdk

A PHP wrapper for Twilio's API

1.6k101.1M308](/packages/twilio-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
