PHPackages                             webtoolsnz/swift-sdk - 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. webtoolsnz/swift-sdk

ActiveLibrary[API Development](/categories/api)

webtoolsnz/swift-sdk
====================

PHP SDK for the Swift SMS campaign tool

1.0.7(8y ago)238MITPHPPHP &gt;=5.4.0

Since Aug 17Pushed 8y ago2 watchersCompare

[ Source](https://github.com/webtoolsnz/swift-php-sdk)[ Packagist](https://packagist.org/packages/webtoolsnz/swift-sdk)[ Docs](https://github.com/webtoolsnz/swift-php-sdk)[ RSS](/packages/webtoolsnz-swift-sdk/feed)WikiDiscussions master Synced 4w ago

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

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/375761af74a34b49b7a27d640e78e295220107c3c609b28ab317366601179d7a/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f776562746f6f6c736e7a2f73776966742d7068702d73646b2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/webtoolsnz/swift-php-sdk)[![Coverage Status](https://camo.githubusercontent.com/4b2f2c1e7402fcd37094d5f28639ae2cfb3725995d7191ce5949432d7dfc8870/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f776562746f6f6c736e7a2f73776966742d7068702d73646b2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/webtoolsnz/swift-php-sdk/code-structure)[![Quality Score](https://camo.githubusercontent.com/861a5e00e60f3cb9129d2394f9074a5d629d05e07fc9e1439468f16adcaa7f04/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f776562746f6f6c736e7a2f73776966742d7068702d73646b2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/webtoolsnz/swift-php-sdk)

Swift SDK
=========

[](#swift-sdk)

An easy to use PHP SDK for the [Swift SMS Campaign Management Tool](http://swiftsms.co.nz/)

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

[](#installation)

Install `webtoolsnz/swift-sdk` using Composer.

```
$ composer require webtoolsnz/swift-sdk
```

Usage Examples
--------------

[](#usage-examples)

#### Retrieve list of campaigns

[](#retrieve-list-of-campaigns)

```
use \webtoolsnz\Swift\Swift;
use \webtoolsnz\Swift\Resources\Recipient;

$apiKey = 'INSERT_YOUR_API_KEY_HERE';
$endPoint = 'https://my.swift-app.com.au/api';

$swift = new Swift($endPoint, $apiKey);

$campaigns = $swift->getCampaigns();

var_dump($campaigns);
```

#### Add recipient to campaign

[](#add-recipient-to-campaign)

```
use \webtoolsnz\Swift\Swift;
use \webtoolsnz\Swift\Resources\Recipient;

$apiKey = 'INSERT_YOUR_API_KEY_HERE';
$endPoint = 'https://my.swift-app.com.au/api';

$swift = new Swift($endPoint, $apiKey);

$recipient = new Recipient();
$recipient->first_name = 'Philip';
$recipient->last_name = 'Fry';
$recipient->campaign_id = 123;
$recipient->mobile_number = "021234567";
$recipient->account_id = uniqid();

var_dump($swift->createRecipient($recipient));
```

#### Retrieve a recipient

[](#retrieve-a-recipient)

This will also include the recipients survey responses, if available.

```
use \webtoolsnz\Swift\Swift;
use \webtoolsnz\Swift\Resources\Recipient;

$apiKey = 'INSERT_YOUR_API_KEY_HERE';
$endPoint = 'https://my.swift-app.com.au/api';

$swift = new Swift($endPoint, $apiKey);

var_dump($swift->getRecipient(123));
```

License
-------

[](#license)

`swift-php-sdk` is open-sourced software licensed under the MIT License (MIT). Please see [LICENSE](LICENSE) for more information.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 85.7% 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 ~60 days

Recently: every ~94 days

Total

8

Last Release

3179d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0fe4edc8748b6ac4922ab8d16f64de61ad0b552027d8c1630646f6a0d6f09b9d?d=identicon)[badams](/maintainers/badams)

![](https://avatars.githubusercontent.com/u/57298?v=4)[bruce aldridge](/maintainers/brucealdridge)[@brucealdridge](https://github.com/brucealdridge)

![](https://avatars.githubusercontent.com/u/3345508?v=4)[Jonathan Guo](/maintainers/JonathanGuo)[@JonathanGuo](https://github.com/JonathanGuo)

![](https://avatars.githubusercontent.com/u/12756120?v=4)[webtools-machine-user](/maintainers/webtools-machine-user)[@webtools-machine-user](https://github.com/webtools-machine-user)

---

Top Contributors

[![badams](https://avatars.githubusercontent.com/u/340715?v=4)](https://github.com/badams "badams (18 commits)")[![brucealdridge](https://avatars.githubusercontent.com/u/57298?v=4)](https://github.com/brucealdridge "brucealdridge (3 commits)")

---

Tags

apisdksmscampaignswift

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/webtoolsnz-swift-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/webtoolsnz-swift-sdk/health.svg)](https://phpackages.com/packages/webtoolsnz-swift-sdk)
```

###  Alternatives

[resend/resend-php

Resend PHP library.

596.2M36](/packages/resend-resend-php)[mozex/anthropic-laravel

Laravel integration for the Anthropic API: facade, config publishing, install command, testing fakes, messages, streaming, tool use, thinking, and batches.

72287.1k1](/packages/mozex-anthropic-laravel)[clicksend/clicksend-php

301.6M11](/packages/clicksend-clicksend-php)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[fingerprint/fingerprint-pro-server-api-sdk

Fingerprint Server API allows you to get, search, and update Events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device.

32250.3k1](/packages/fingerprint-fingerprint-pro-server-api-sdk)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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