PHPackages                             yusufthedragon/caih-sms-php - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. yusufthedragon/caih-sms-php

ActiveLibrary[HTTP &amp; Networking](/categories/http)

yusufthedragon/caih-sms-php
===========================

PHP Client for CAIH SMS API

0.1.0(5y ago)0186GPL-3.0-onlyPHPPHP &gt;=7.2.0

Since Nov 22Pushed 5y ago1 watchersCompare

[ Source](https://github.com/yusufthedragon/caih-sms-php)[ Packagist](https://packagist.org/packages/yusufthedragon/caih-sms-php)[ RSS](/packages/yusufthedragon-caih-sms-php/feed)WikiDiscussions master Synced yesterday

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

CAIH SMS API PHP Client
=======================

[](#caih-sms-api-php-client)

Unofficial library for send SMS messages with [China-ASEAN Information Harbor](http://www.caih.com) SMS API from applications written with PHP.

- [Installation](#installation)
    - [Install the Package](#install-the-package)
    - [Set the Token](#set-the-token)
    - [Set the Channel Key](#set-the-channel-key)
- [Usages](#usages)
    - [Send a SMS Message](#send-a-sms-message)
    - [Check the Status of SMS Message](#check-the-status-of-sms-message)
    - [Batch Send SMS Message](#batch-send-sms-message)
    - [Batch Check SMS Message](#batch-check-sms-message)
- [Contributing](#contributing)

---

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

[](#installation)

### Install the Package

[](#install-the-package)

Install caih-sms-php with composer by following command:

```
composer require yusufthedragon/caih-sms-php
```

or add it manually in your `composer.json` file.

### Set the Token

[](#set-the-token)

Configure package with your token obtained from CAIH.

```
\YusufTheDragon\CAIH\SMS::setToken('token');
```

### Set the Channel Key

[](#set-the-channel-key)

Configure package with your channel key obtained from CAIH.

```
\YusufTheDragon\CAIH\SMS::setChannelKey('channelKey');
// or chain it with setToken method
\YusufTheDragon\CAIH\SMS::setToken('token')->setChannelKey('channelKey');
```

Usages
------

[](#usages)

### Send a SMS Message

[](#send-a-sms-message)

Send a single SMS request to specific number.

```
\YusufTheDragon\CAIH\SMS::send(array $parameters);
```

Usage example:

```
$sendSMS = \YusufTheDragon\CAIH\SMS::send([
    'toNumber' => '6282147218942',
    'message' => 'Test Message',
    'requestId' => time()
]);
var_dump($sendSMS);
```

### Check the Status of SMS Message

[](#check-the-status-of-sms-message)

Check the sending status of SMS message.

```
\YusufTheDragon\CAIH\SMS::queryStatus(array $parameters);
```

Usage example:

```
$checkSMS = \YusufTheDragon\CAIH\SMS::queryStatus([
    'messageId' => '1329851774301548544',
    'toNumber' => '6282147218942'
]);
var_dump($checkSMS);
```

### Batch Send SMS Messages

[](#batch-send-sms-messages)

Send SMS messages in batches.

```
\YusufTheDragon\CAIH\SMS::batchSend(array $parameters);
```

Usage example:

```
$batchSendSMS = \YusufTheDragon\CAIH\SMS::batchSend([
    'requestId' => time(),
    'batchToNumber' => [
        '6282147218942',
        '6282147218943',
        '6282147218944'
    ],
    'batchMessage' => [
        'Test SMS 1',
        'Test SMS 2',
        'Test SMS 3'
    ]
]);
var_dump($batchSendSMS);
```

### Batch Check SMS Messages

[](#batch-check-sms-messages)

Check the sending status of SMS messages in batches.

```
\YusufTheDragon\CAIH\SMS::batchQueryStatus(array $parameters);
```

Usage example:

```
$batchQueryStatus = \YusufTheDragon\CAIH\SMS::batchQueryStatus([
    'requestId' => '160595797880071',
    'batchToNumber' => [
        '6282147218942',
        '6282147218943',
        '6282147218944'
    ],
    'batchMessageId' => [
        '910471603446566431',
        '910471603446566432',
        '910471603446566433'
    ]
]);
var_dump($batchQueryStatus);
```

Contributing
------------

[](#contributing)

For any requests, bugs, or comments, please open an [issue](https://github.com/yusufthedragon/caih-sms-php/issues) or [submit a pull request](https://github.com/yusufthedragon/caih-sms-php/pulls).

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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

1997d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/26558083?v=4)[Yusuf Ardi](/maintainers/yusufthedragon)[@yusufthedragon](https://github.com/yusufthedragon)

---

Top Contributors

[![yusufthedragon](https://avatars.githubusercontent.com/u/26558083?v=4)](https://github.com/yusufthedragon "yusufthedragon (1 commits)")

---

Tags

smscaih

### Embed Badge

![Health badge](/badges/yusufthedragon-caih-sms-php/health.svg)

```
[![Health](https://phpackages.com/badges/yusufthedragon-caih-sms-php/health.svg)](https://phpackages.com/packages/yusufthedragon-caih-sms-php)
```

###  Alternatives

[infobip/infobip-api-php-client

PHP library for consuming Infobip's API

921.8M10](/packages/infobip-infobip-api-php-client)[esendex/sdk

Send SMS from your application using the Esendex API

22924.5k4](/packages/esendex-sdk)[mediaburst/clockworksms

ClockworkSMS, International SMS API

45143.7k4](/packages/mediaburst-clockworksms)[ismaeltoe/osms

PHP library wrapper of the Orange SMS API.

4540.0k](/packages/ismaeltoe-osms)[greensms/greensms

GREENSMS API: SMS, WhatsApp, Viber, VK, Voice, Call, HLR

2629.6k](/packages/greensms-greensms)[minchao/every8d-php

A EVERY8D SMS SDK for PHP (Unofficial)

1239.9k1](/packages/minchao-every8d-php)

PHPackages © 2026

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