2017 © Pedro Peláez
 

library yunpian

云片短信

image

sn01615/yunpian

云片短信

  • Tuesday, January 9, 2018
  • by sn01615
  • Repository
  • 1 Watchers
  • 0 Stars
  • 21 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 50 % Grown

The README.md

应用场景

  1. 云片短信

Install

composer require sn01615/yunpian

Usage

use Yunpian\Yunpian;

$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);

The Versions

09/01 2018

dev-master

9999999-dev

云片短信

  Sources   Download

Apache-2.0

云片短信

09/01 2018

v1.4

1.4.0.0

云片短信

  Sources   Download

Apache-2.0

云片短信

08/01 2018

v1.3

1.3.0.0

云片短信

  Sources   Download

Apache-2.0

云片短信

08/01 2018

v1.2

1.2.0.0

云片短信

  Sources   Download

Apache-2.0

云片短信

08/01 2018

v1.1

1.1.0.0

云片短信

  Sources   Download

Apache-2.0

云片短信