PHPackages                             taliffsss/unisms - 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. taliffsss/unisms

ActiveLibrary[API Development](/categories/api)

taliffsss/unisms
================

PHP client library for the UniSMS API (https://unismsapi.com)

v1.0.0(1mo ago)01MITPHPPHP ^8.0CI passing

Since Jul 2Pushed 1mo agoCompare

[ Source](https://github.com/taliffsss/unisms)[ Packagist](https://packagist.org/packages/taliffsss/unisms)[ Docs](https://github.com/taliffsss/unisms-php)[ RSS](/packages/taliffsss-unisms/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

UniSms
======

[](#unisms)

Community PHP SDK for the [UniSMS API](https://unismsapi.com) — a powerful, reliable, and developer-friendly SMS API for the Philippines, supporting all major carriers (Globe, Smart, DITO, Sun, TNT).

This is a community-maintained library for the UniSMS API, created to simplify integration for PHP developers. It provides a clean, intuitive interface for sending SMS messages and checking delivery status.

Requirements
------------

[](#requirements)

- PHP 8.0 or higher
- ext-curl
- ext-json

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

[](#installation)

```
composer require taliffsss/unisms
```

Usage
-----

[](#usage)

### Sending an SMS

[](#sending-an-sms)

```
use Taliffsss\UniSms\UniSms;

$uniSms = new UniSms('your-secret-key');

$response = $uniSms->to('+639171234567')
    ->message('Hello world')
    ->from('MyBrand') // optional, defaults to "UniSMS"
    ->withMetadata(['order_id' => 12345]) // optional, echoed back by the API
    ->send();

// $response['message']['reference_id'], $response['message']['status'], ...
```

### Checking a message's status

[](#checking-a-messages-status)

```
$status = $uniSms->get('msg_84e8b93b-6315-46af-a686');
```

### Error handling

[](#error-handling)

```
use Taliffsss\UniSms\Exceptions\ApiException;
use Taliffsss\UniSms\Exceptions\TransportException;
use Taliffsss\UniSms\Exceptions\UniSmsException;

try {
    $uniSms->to('639171234567')->message('Hello world')->send();
} catch (ApiException $e) {
    // The API reached but returned a non-2xx response.
    $e->getStatusCode();
    $e->getResponseBody();
} catch (TransportException $e) {
    // The request could not be completed (network/timeout/etc.).
} catch (UniSmsException $e) {
    // Any other client-side validation error (e.g. missing recipient).
}
```

Testing
-------

[](#testing)

```
composer install
composer test
```

License
-------

[](#license)

The MIT License (MIT). See [LICENSE](LICENSE) for details.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance91

Actively maintained with recent releases

Popularity1

Limited adoption so far

Community6

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

48d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/20979701d030a29b8c96f1c09302ebef5cce470d05bbebf4b573723d5c4eefcd?d=identicon)[taliffsss](/maintainers/taliffsss)

---

Top Contributors

[![taliffsss](https://avatars.githubusercontent.com/u/18239979?v=4)](https://github.com/taliffsss "taliffsss (2 commits)")

---

Tags

apiclientsmsphilippinesUniSMS

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[deepseek-php/deepseek-php-client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

47394.5k5](/packages/deepseek-php-deepseek-php-client)[walle89/swedbank-json

Unofficial API client for the Swedbank's and Sparbanken's mobile apps in Sweden.

772.5k](/packages/walle89-swedbank-json)

PHPackages © 2026

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