PHPackages                             atymic/sms-broadcast - 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. atymic/sms-broadcast

ActiveLibrary

atymic/sms-broadcast
====================

PHP client for the SMS Broadcast API

1.1.1(6y ago)321.8k22MITPHPPHP ^7.2

Since Jun 8Pushed 6y agoCompare

[ Source](https://github.com/atymic/sms-broadcast-php)[ Packagist](https://packagist.org/packages/atymic/sms-broadcast)[ RSS](/packages/atymic-sms-broadcast/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (9)Used By (2)

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

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

[![Build Status](https://camo.githubusercontent.com/dbb715bcfcde3990eb9193e63010363b9058f71673922016e329c07b9d49f5e1/68747470733a2f2f7472617669732d63692e6f72672f6174796d69632f736d732d62726f6164636173742d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/atymic/sms-broadcast-php) [![StyleCI](https://camo.githubusercontent.com/5e340e4d433732c3c769d33fe09ae440fd8465ec058d76fbf72c6fca8d5cf375/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3139303439333136332f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/190493163) [![Latest Stable Version](https://camo.githubusercontent.com/c7a98c7ac3d7191f8d1376cd86db998186a9177dccc7f7baec88466a0faec34c/68747470733a2f2f706f7365722e707567782e6f72672f6174796d69632f736d732d62726f6164636173742f762f737461626c65)](https://packagist.org/packages/atymic/sms-broadcast) [![License](https://camo.githubusercontent.com/ff0a3abe76e8893ce844b633801c48da77b7854960fb891efdf6b736809e4769/68747470733a2f2f706f7365722e707567782e6f72672f6174796d69632f736d732d62726f6164636173742f6c6963656e7365)](https://packagist.org/packages/atymic/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 atymic/sms-broadcast
```

Usage
-----

[](#usage)

### Creating the client

[](#creating-the-client)

```
$client = \Atymic\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 (\Atymic\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

32

—

LowBetter than 71% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

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

Every ~12 days

Total

4

Last Release

2490d ago

Major Versions

0.0.1 → 1.0.02019-07-04

### Community

Maintainers

![](https://www.gravatar.com/avatar/65eb3a7ba2a2c13b3a9de48b836caf759ad4052f9a839e30464c80d177d5b3d2?d=identicon)[atymic](/maintainers/atymic)

---

Top Contributors

[![atymic](https://avatars.githubusercontent.com/u/50683531?v=4)](https://github.com/atymic "atymic (14 commits)")

---

Tags

australiasmssms-apisms-broadcastsms-gatewaysms-sdksms-service

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/atymic-sms-broadcast/health.svg)

```
[![Health](https://phpackages.com/badges/atymic-sms-broadcast/health.svg)](https://phpackages.com/packages/atymic-sms-broadcast)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k20](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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