定制 reborn/reborn-sendsms 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

reborn/reborn-sendsms

Composer 安装命令:

composer require reborn/reborn-sendsms

包简介

README 文档

README

发送短信

1.在config目录下新增sendsms.php
return [
         'txy_appid' =>'xxxx',//短信appid
         'txy_appkey' =>'xxxx',//短信key
         'txy_url' =>'xxxxx',//短信联系
         'checkurl' =>'xxxx',//网站链接
         'tpl_1' =>'xxxx',//模板id
         'tpl_content_1' =>'xxxx',//模板内容
     ];

2、demo
<?php

namespace app\index\controller;

use reborn\sendsms\SendSms;

class Index
{

  public function sendsms()
    {
        $phone='158xxx';//手机号
        $data=mt_rand('100000','999999');//短信1的内容
        $param=[$data];
        $res=(new SendSms())->send($phone,1,$param);
        return $res;
    }
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-04-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固