PHPackages                             devineonline/smsbroadcast - 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. devineonline/smsbroadcast

ActiveLibrary[API Development](/categories/api)

devineonline/smsbroadcast
=========================

PHP client for the SMS Broadcast API

8.4(4y ago)0482MITPHPPHP ^7.3

Since Jun 8Pushed 4y agoCompare

[ Source](https://github.com/devine-online/sms-broadcast-php)[ Packagist](https://packagist.org/packages/devineonline/smsbroadcast)[ RSS](/packages/devineonline-smsbroadcast/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (5)Dependencies (3)Versions (14)Used By (2)

Forked from outdated repo by Atymic
===================================

[](#forked-from-outdated-repo-by-atymic)

SmsBroadcast PHP API Client
===========================

[](#smsbroadcast-php-api-client)

[![Build Status](https://camo.githubusercontent.com/e8074188d443df32254dc010e29e4aa5a1d3e98d9f794106223fe97a0c27ccac/68747470733a2f2f7472617669732d63692e6f72672f446576696e654f6e6c696e652f736d732d62726f6164636173742d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/DevineOnline/sms-broadcast-php) [![StyleCI](https://camo.githubusercontent.com/5e340e4d433732c3c769d33fe09ae440fd8465ec058d76fbf72c6fca8d5cf375/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3139303439333136332f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/190493163) [![Latest Stable Version](https://camo.githubusercontent.com/ebc32c88bb9bb25ab713cdef7153a26a51adec495df471b1dc68d4425799f42a/68747470733a2f2f706f7365722e707567782e6f72672f446576696e654f6e6c696e652f736d732d62726f6164636173742f762f737461626c65)](https://packagist.org/packages/DevineOnline/sms-broadcast) [![License](https://camo.githubusercontent.com/4a6458eee33c242df52b5e91165f360f4850621c247d431bcc97f23733a6c049/68747470733a2f2f706f7365722e707567782e6f72672f446576696e654f6e6c696e652f736d732d62726f6164636173742f6c6963656e7365)](https://packagist.org/packages/DevineOnline/sms-broadcast)

This is a simple API client for [SMS Broadcast](https://www.smsbroadcast.com.au/).

You can view their API documentation [here](https://www.smsbroadcast.com.au/Advanced%20HTTP%20API.pdf).

Install
-------

[](#install)

```
composer require DevineOnline/sms-broadcast
```

Usage
-----

[](#usage)

### Creating the client

[](#creating-the-client)

```
$client = \DevineOnline\SmsBroadcast\Factory\ClientFactory::create(
    'username',
    'password',
    '0412345678' // Default sender, optional
);
```

### Sending a message to a single recipient

[](#sending-a-message-to-a-single-recipient)

```
try {
    $response = $client->send('0487654321', 'This is an sms message');
} catch (\DevineOnline\SmsBroadcast\Exception\SmsBroadcastException $e) {
    echo 'Failed to send with error: ' . $e->getMessage();
}

echo 'SMS sent, ref: ' . $response->getSmsRef();
```

### Sending a message to a multiple recipients

[](#sending-a-message-to-a-multiple-recipients)

```
$to = ['0487654321', '0487654322', '0487654323']
$responses = $client->sendMultiple($to, 'This is an sms message');

foreach ($responses as $response) {
    echo $response->hasError()
        ? 'Failed to send SMS: ' . $response->getError()
        : 'SMS sent, ref: ' . $response->getSmsRef();
}
```

### Check SMS credit balance

[](#check-sms-credit-balance)

```
echo $client->getBalance(); // int(1222)
```

Tests
-----

[](#tests)

By default only unit tests will run. If you want to run the integration tests, copy the `phpunit.dist.xml` file to `phpunit.xml` and supply your SMS Broadcast credentials &amp; to number in the file.

WARNING - Integration tests will send real SMS messages, so make sure not to run them in CI.

```
composer test
```

Todo
====

[](#todo)

- Support for incoming message webhooks

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 82.4% 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

Every ~92 days

Recently: every ~1 days

Total

9

Last Release

1796d ago

Major Versions

0.0.1 → 1.0.02019-07-04

1.1.1 → 8.02021-06-13

PHP version history (2 changes)1.0.0PHP ^7.2

8.0PHP ^7.3

### Community

Maintainers

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

---

Top Contributors

[![atymic](https://avatars.githubusercontent.com/u/50683531?v=4)](https://github.com/atymic "atymic (14 commits)")[![devine-online](https://avatars.githubusercontent.com/u/45787520?v=4)](https://github.com/devine-online "devine-online (2 commits)")[![pestbuildlegals](https://avatars.githubusercontent.com/u/68520499?v=4)](https://github.com/pestbuildlegals "pestbuildlegals (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/devineonline-smsbroadcast/health.svg)

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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