PHPackages                             meioco3/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. meioco3/yunpian-php-sdk

ActiveLibrary

meioco3/yunpian-php-sdk
=======================

Yunpian PHP SDK

01PHP

Since Dec 7Pushed 2y agoCompare

[ Source](https://github.com/a-long-way/yunpian-php-sdk)[ Packagist](https://packagist.org/packages/meioco3/yunpian-php-sdk)[ RSS](/packages/meioco3-yunpian-php-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)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);
if($r->isSucc()){
    //$r->data()
}

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

**注**: 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)

视频教程
----

[](#视频教程)

[使用视频教程](https://deqing.b0.upaiyun.com/yunpian/video/yunpiannbhd.mp4)

联系我们
----

[](#联系我们)

[云片支持 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/dev-doc)

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 Bus Factor1

Top contributor holds 70.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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/bf7733fb5d5bb6c555fd1ea04ca0d3d5758cbff733342164cafd85f03fbb5b6e?d=identicon)[meioco3](/maintainers/meioco3)

---

Top Contributors

[![dzh](https://avatars.githubusercontent.com/u/709937?v=4)](https://github.com/dzh "dzh (29 commits)")[![bingone](https://avatars.githubusercontent.com/u/11375634?v=4)](https://github.com/bingone "bingone (5 commits)")[![sqj8899](https://avatars.githubusercontent.com/u/7865649?v=4)](https://github.com/sqj8899 "sqj8899 (3 commits)")[![a-long-way](https://avatars.githubusercontent.com/u/24518718?v=4)](https://github.com/a-long-way "a-long-way (2 commits)")[![cuncle](https://avatars.githubusercontent.com/u/15972598?v=4)](https://github.com/cuncle "cuncle (1 commits)")[![jiacheo](https://avatars.githubusercontent.com/u/1650931?v=4)](https://github.com/jiacheo "jiacheo (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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