sn01615 / junengwan
剧能玩
Installs: 42
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/sn01615/junengwan
This package is not auto-updated.
Last update: 2025-10-03 08:57:03 UTC
README
应用场景
- 云片短信
Install
composer require sn01615/yunpian
Usage
use Yunpian\Yumpian; $text = "【某某有限公司】您的验证码是#code#"; $text = str_replace('#code#', $code, $text); $apikey = $_SERVER['CONFIGYUNPIAN']; $sender = new Yunpian(); $sender->setApiKey($apikey); $sender->setCurlOpt( [ CURLOPT_CAINFO => __DIR__ . '/../nlibraries/ca-bundle.crt' ]); $result = $sender->singleSend($mobile, $text);