PHPackages                             king52311/yunpi-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. king52311/yunpi-php-sdk

ActiveLibrary

king52311/yunpi-php-sdk
=======================

Yunpi PHP SDK

v1.0.0(1y ago)02MITPHPPHP &gt;=5.6.0

Since Nov 13Pushed 1y agoCompare

[ Source](https://github.com/king52311/yunpi-php-sdk)[ Packagist](https://packagist.org/packages/king52311/yunpi-php-sdk)[ Docs](https://github.com/yunpian/yunpian-php-sdk)[ RSS](/packages/king52311-yunpi-php-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (3)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

23

—

LowBetter than 27% of packages

Maintenance40

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 64.4% 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 ~0 days

Total

2

Last Release

542d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/142ca5aa28d972b01d15479c07a12a766e343d3fdf6ff65bd1a55af8af0baa3c?d=identicon)[snuday](/maintainers/snuday)

---

Top Contributors

[![dzh](https://avatars.githubusercontent.com/u/709937?v=4)](https://github.com/dzh "dzh (29 commits)")[![king52311](https://avatars.githubusercontent.com/u/2328624?v=4)](https://github.com/king52311 "king52311 (6 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)")[![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)")

---

Tags

sdkyunpian

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/king52311-yunpi-php-sdk/health.svg)

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

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[guanguans/notify

Push notification SDK(AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

682104.9k7](/packages/guanguans-notify)[yunpian/yunpian-php-sdk

Yunpian PHP SDK

69103.2k4](/packages/yunpian-yunpian-php-sdk)[azure-oss/storage

Azure Blob Storage PHP SDK

37985.0k5](/packages/azure-oss-storage)[onesignal/onesignal-php-api

A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

34170.2k2](/packages/onesignal-onesignal-php-api)

PHPackages © 2026

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