PHPackages                             yunpian-special/yunpian-php-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. yunpian-special/yunpian-php-sdk

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

yunpian-special/yunpian-php-sdk
===============================

Yunpian PHP SDK

1.0.1(9y ago)018MITPHPPHP &gt;=5.6.0

Since Mar 14Pushed 8y ago1 watchersCompare

[ Source](https://github.com/lyongdee/yunpian-php-sdk-special)[ Packagist](https://packagist.org/packages/yunpian-special/yunpian-php-sdk)[ Docs](https://github.com/yunpian/yunpian-php-sdk)[ RSS](/packages/yunpian-special-yunpian-php-sdk/feed)WikiDiscussions master Synced today

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

yunpian-php-sdk
===============

[](#yunpian-php-sdk)

[云片](https://www.yunpian.com/) SDK

快速开始
----

[](#快速开始)

- 添加composer依赖

```
"require" : {
        "yunpian/yunpian-php-sdk" : "~1.0"
    }
```

**注**: master是最新稳定版。我们会更新到[Packagist](https://packagist.org/explore/)

- 使用YunpianClient

```
use \Yunpian\Sdk\YunpianClient;

//初始化client,apikey作为所有请求的默认值
$clnt = YunpianClient::create($apikey);

$param = [YunpianClient::MOBILE => '18616020000',YunpianClient::TEXT => '【云片网】您的验证码是1234'];
$r = $clnt->sms()->single_send($param);
var_dump($r);

//账户 $clnt->user() 签名 $clnt->sign() 模版 $clnt->tpl() 短信 $clnt->sms() 语音 $clnt->voice() 流量 $clnt->flow()
```

**注**: v1.0开始使用composer管理工程。不兼容之前版本，若需要可从github下载[0.0.1](https://github.com/yunpian/yunpian-php-sdk/releases/tag/0.0.1)

配置说明 (默认配置就行)
-------------

[](#配置说明-默认配置就行)

- 默认配置文件 src/yunpian.ini
- 构造器配置
    - `YunpianClient::create($apikey);`
    - `YunpianClient::create($apikey,$conf);`
- apikey的优先级 函数的$param\[YunpianConstant::APIKEY\] &gt; 构造器的$apikey &gt; 构造器的$conf\[YunpianConstant::YP\_APIKEY\] &gt; yunpian.ini

源码说明 yunpian-php-sdk
--------------------

[](#源码说明-yunpian-php-sdk)

- 工程使用composer构造，php5.6 or higher
- 开发API可参考单元测试 tests/Api
- 执行单元测试 `phpunit tests`，安装[phpunit](https://phpunit.de/manual/5.7/en/installation.html)

联系我们
----

[](#联系我们)

[云片支持 QQ](https://static.meiqia.com/dist/standalone.html?eid=30951&groupid=0d20ab23ab4702939552b3f81978012f&metadata=%7B%22name%22:%22github%22%7D)

SDK开源QQ群

[![SDK开源QQ群](doc/sdk_qq.jpeg)](doc/sdk_qq.jpeg)

文档链接
----

[](#文档链接)

- [api文档](https://www.yunpian.com/api2.0/guide.html)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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 ~4 days

Total

4

Last Release

3334d ago

Major Versions

0.9 → 1.0.02017-03-14

### Community

Maintainers

![](https://www.gravatar.com/avatar/317cd10107633d47da7fff802e7f42c83b53b2cc9b28fc76103530ca585a7079?d=identicon)[lyongde](/maintainers/lyongde)

---

Top Contributors

[![dzh](https://avatars.githubusercontent.com/u/709937?v=4)](https://github.com/dzh "dzh (24 commits)")[![lyongdee](https://avatars.githubusercontent.com/u/369124?v=4)](https://github.com/lyongdee "lyongdee (6 commits)")[![bingone](https://avatars.githubusercontent.com/u/11375634?v=4)](https://github.com/bingone "bingone (5 commits)")[![jiacheo](https://avatars.githubusercontent.com/u/1650931?v=4)](https://github.com/jiacheo "jiacheo (1 commits)")

---

Tags

sdkyunpian

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yunpian-special-yunpian-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/yunpian-special-yunpian-php-sdk/health.svg)](https://phpackages.com/packages/yunpian-special-yunpian-php-sdk)
```

###  Alternatives

[infusionsoft/php-sdk

PHP SDK for the Infusionsoft

1292.1M7](/packages/infusionsoft-php-sdk)[corley/influxdb-sdk

Send your app metrics to InfluxDB

84296.5k2](/packages/corley-influxdb-sdk)

PHPackages © 2026

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