PHPackages                             apistd/uni-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. apistd/uni-sdk

ActiveLibrary[API Development](/categories/api)

apistd/uni-sdk
==============

Uni SDK for php

0.1.0(4y ago)22.6k↓33.3%2[1 PRs](https://github.com/apistd/uni-php-sdk/pulls)MITPHPPHP &gt;=7.0

Since May 11Pushed 3y ago2 watchersCompare

[ Source](https://github.com/apistd/uni-php-sdk)[ Packagist](https://packagist.org/packages/apistd/uni-sdk)[ Docs](https://github.com/apistd/uni-php-sdk)[ RSS](/packages/apistd-uni-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)DependenciesVersions (9)Used By (0)

Uni PHP SDK
===========

[](#uni-php-sdk)

[UniSMS](https://unisms.apistd.com/) - 高可用聚合短信服务平台官方 PHP SDK.

文档
--

[](#文档)

查看完整产品介绍与 API 文档请访问 [UniSMS Documentation](https://unisms.apistd.com/docs).

安装
--

[](#安装)

Uni PHP SDK 使用 Packagist 托管，可从公共 [Packagist 仓库](https://packagist.org/packages/apistd/uni-sdk) 中获得。

使用 Composer 在项目中添加 `apistd/uni-sdk` 作为依赖：

```
composer require apistd/uni-sdk
```

使用示例
----

[](#使用示例)

以下示例展示如何使用 Uni PHP SDK 快速调用服务。

### 发送短信

[](#发送短信)

```
use Uni\Common\UniException;
use Uni\SMS\UniSMS;

// 初始化
$client = new UniSMS([
  'accessKeyId' => 'your access key id',
  'accessKeySecret' => 'your access key secret'
]);

// 发送短信
try {
  $resp = $client->send([
    'to' => 'your phone number',
    'signature' => 'UniSMS',
    'templateId' => 'login_tmpl',
    'templateData' => [
      'code' => 7777
    ]
  ]);
  var_dump($resp->data);
} catch (UniException $e) {
  print_r($e);
}
```

相关参考
----

[](#相关参考)

### 其他语言 SDK

[](#其他语言-sdk)

- [Java](https://github.com/apistd/uni-java-sdk)
- [Go](https://github.com/apistd/uni-go-sdk)
- [Node.js](https://github.com/apistd/unisms-node-sdk)
- [Python](https://github.com/apistd/uni-python-sdk)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity42

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 ~10 days

Recently: every ~18 days

Total

8

Last Release

1759d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4847490?v=4)[Acathur](/maintainers/acathur)[@acathur](https://github.com/acathur)

---

Top Contributors

[![acathur](https://avatars.githubusercontent.com/u/4847490?v=4)](https://github.com/acathur "acathur (12 commits)")

---

Tags

sdksmsmessaginguniUniSMS

### Embed Badge

![Health badge](/badges/apistd-uni-sdk/health.svg)

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

PHPackages © 2026

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