PHPackages                             touchsms/touchsms - 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. touchsms/touchsms

ActiveLibrary[API Development](/categories/api)

touchsms/touchsms
=================

touchSMS Api Client

2.0.0(2y ago)03.8k↑114.3%11MITPHPPHP &gt;=8.0

Since Jul 29Pushed 2y ago1 watchersCompare

[ Source](https://github.com/touchsms/touchsms-PHP-API)[ Packagist](https://packagist.org/packages/touchsms/touchsms)[ RSS](/packages/touchsms-touchsms/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (13)Versions (5)Used By (1)

touchSMS
========

[](#touchsms)

[![Latest Stable Version](https://camo.githubusercontent.com/39e1cff0dcd6d548c5763f7c7ce709f232f1f97084007947aa82670c18cdae0d/68747470733a2f2f706f7365722e707567782e6f72672f746f756368736d732f746f756368736d732f76657273696f6e)](https://packagist.org/packages/touchsms/touchsms)

PHP SDK for [touchSMS](https://touchsms.com.au).

This SDK is generated automatically with JanePHP. It provides a full object-oriented interface for the endpoints, requests and responses.

You can explore the `\TouchSms\ApiClient\Api` namespace to see the generated classes.

Currently, only a portion of the API has been converted to openAPI, and thus this client. If you would like support for a method, please open an issue and our team will address it.

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

[](#installation)

```
composer require touchsms/touchsms

```

Usage
-----

[](#usage)

Use the `ClientFactory` to create an API client.

```
// access token & token id can be generated at https://app.touchsms.com.au/settings/api
$client = \TouchSms\ApiClient\ClientFactory::create('ACCESS_TOKEN', 'TOKEN_ID');

$res = $client->getAccount();
```

### Send SMS

[](#send-sms)

```
$client = ClientFactory::create($_ENV['ACCESS_TOKEN'], $_ENV['TOKEN_ID']);

$res = $client->sendMessages(new SendMessageBody([
    'messages' => [ // Up to 1000 messages supported
        new OutboundMessage([
            'to' => '61491578888', // Test number
            'from' => 'SHARED_NUMBER',
            'body' => 'Text',
        ]),
    ],
]));

var_dump($res->getData()->getMessages()); // Successful messages, \TouchSms\ApiClient\Api\Model\OutboundMessageResponse
var_dump($res->getData()->getErrors()); // Messages with errors, \TouchSms\ApiClient\Api\Model\OutboundMessageError
```

#### Output

[](#output)

```
// array of OutboundMessageResponse objects
$message = $res->getData()->getMessages()[0];
$message->getTo();
$message->getMeta()->getParts();
$message->getMeta()->getCost();
//etc
```

### View User Details

[](#view-user-details)

```
$res = $client->getAccount();
```

#### Output

[](#output-1)

```
var_dump($res->getData()); // object, \TouchSms\ApiClient\Api\Model\AccountInformation
var_dump(
    $res->getData()->getEmail(), // user
    $res->getData()->getCredits() // credit balance
);
```

Examples
--------

[](#examples)

Examples can be found in `examples` directory.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 71.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 ~1376 days

Total

3

Last Release

874d ago

Major Versions

v1.3 → 2.0.02024-02-10

PHP version history (2 changes)1.0.0PHP &gt;=5.3.0

2.0.0PHP &gt;=8.0

### Community

Maintainers

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

---

Top Contributors

[![sketchthat](https://avatars.githubusercontent.com/u/5913727?v=4)](https://github.com/sketchthat "sketchthat (10 commits)")[![atymic](https://avatars.githubusercontent.com/u/50683531?v=4)](https://github.com/atymic "atymic (3 commits)")[![garychapman](https://avatars.githubusercontent.com/u/2315465?v=4)](https://github.com/garychapman "garychapman (1 commits)")

---

Tags

smsmobilesms-gatewaycellphonetouchsms

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35789.4k2](/packages/telnyx-telnyx-php)[openai-php/client

OpenAI PHP is a supercharged PHP API client that allows you to interact with the Open AI API

5.8k28.0M318](/packages/openai-php-client)[deeplcom/deepl-php

Official DeepL API Client Library

2607.3M114](/packages/deeplcom-deepl-php)[mailgun/mailgun-php

The Mailgun SDK provides methods for all API functions.

1.1k30.8M180](/packages/mailgun-mailgun-php)[getbrevo/brevo-php

Official Brevo provided RESTFul API V3 php library

1003.9M50](/packages/getbrevo-brevo-php)[jolicode/slack-php-api

An up to date PHP client for Slack's API

2564.7M13](/packages/jolicode-slack-php-api)

PHPackages © 2026

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