承接 ccwawamiya/chuanglan 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ccwawamiya/chuanglan

最新稳定版本:3.1

Composer 安装命令:

composer require ccwawamiya/chuanglan

包简介

this is chuanglansmsapi

README 文档

README

使用说明

$clapi = new \Chuanglan\ChuanglanSmsApi($config);
$code = mt_rand(1000, 9999);
$string = '【创蓝科技】您好!验证码是:' . $code;
//设置您要发送的内容:其中“【】”中括号为运营商签名符号,多签名内容前置添加提交
$result = $clapi->sendSMS($phone, $string, true);
if (!is_null(json_decode($result))) {
  $output = json_decode($result, true);
  if (isset($output['code']) && $output['code'] == '0') {
    return array('status' => true, 'msg' => '发送成功');
  } else {
    return array('status' => false, 'msg' => '发送失败');
  }
} else {
  return array('status' => false, 'msg' => '发送失败');
}

统计信息

  • 总下载量: 9
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-11-03