PHPackages                             yjc/sms - 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. yjc/sms

ActiveLibrary

yjc/sms
=======

短信SDK

1.0(9y ago)23732MITPHPPHP &gt;=5.4.0

Since Sep 26Pushed 7y ago2 watchersCompare

[ Source](https://github.com/52fhy/sms)[ Packagist](https://packagist.org/packages/yjc/sms)[ Docs](http://github.com/52fhy/sms)[ RSS](/packages/yjc-sms/feed)WikiDiscussions master Synced 1mo ago

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

sms
===

[](#sms)

云之讯、容联云、阿里大于等短信接口SDK汇聚

[![build=passing](https://camo.githubusercontent.com/73bef9848a696b986c8abc91c53dfef66d82b9f468c0366f0d93ffa1020024b5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6275696c642d70617373696e672d627269676874677265656e2e7376673f6d61784167653d32353932303030)](https://camo.githubusercontent.com/73bef9848a696b986c8abc91c53dfef66d82b9f468c0366f0d93ffa1020024b5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6275696c642d70617373696e672d627269676874677265656e2e7376673f6d61784167653d32353932303030)[![Latest Version on Packagist](https://camo.githubusercontent.com/1bcf4d9c260f3fbd95108fb4a9f9448a245b3f73f462e28870e24c4b98846fb1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f796a632f736d732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/yjc/sms)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![composer](https://camo.githubusercontent.com/449f9f3a8ad5f4981c96e7ebfcff3a92c454a49289f35e8da4dcdfb99020a8b3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6d706f7365722d796a632f736d732d79656c6c6f77677265656e2e7376673f6d61784167653d32353932303030)](https://packagist.org/packages/yjc/sms)[![Total Downloads](https://camo.githubusercontent.com/8f2a8e968e7c5929785f335df547404b11d4e1471316ae443740f141d933798e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f796a632f736d732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/yjc/sms)

将常用的各大验证码短信提供商的接口汇聚在一起，方便实际应用。会不断完善补充。

安装
--

[](#安装)

推荐使用`composer`安装：

```
composer require yjc/sms

```

或者在composer.json里追加：

```
"require": {
	"yjc/sms": "1.0"
},

```

使用示例
----

[](#使用示例)

首先需要到各大提供商注册并审核。然后进行配置。

极光验证码：

```
$sms = new \Yjc\Sms\Jsms('appkey', 'masterkey');
$sms->send($mobile, 'temp_id');
```

可以在SDK里配置appkey和masterkey，也可以代码里实时配置。

云之讯：

```
$sms = new \Yjc\Sms\Ucpaas('token', 'appid', 'accountsid');
$sms->send($mobile, $temp_id, $params);
```

容联云：

```
$sms = new \Yjc\Sms\RongSms();
$sms->send($mobile, $temp_id, $params);
```

阿里大于

```
$sms = new \Yjc\Sms\AliSms();
$sms->send($mobile, $temp_id, $params , $sign_name);
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3512d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/85aec7d223e71253e37fcc79d61d61d104f3cb384748601bf49d57dcd6cf2ff9?d=identicon)[52fhy](/maintainers/52fhy)

---

Top Contributors

[![52fhy](https://avatars.githubusercontent.com/u/8773263?v=4)](https://github.com/52fhy "52fhy (19 commits)")

---

Tags

sdksmssms-sdk

### Embed Badge

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

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

###  Alternatives

[infobip/infobip-api-php-client

PHP library for consuming Infobip's API

921.8M10](/packages/infobip-infobip-api-php-client)[jjonline/aliyun-dysms-php-sdk

Aliyun SMS SDK for PHP

2197.2k](/packages/jjonline-aliyun-dysms-php-sdk)[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)
