2017 © Pedro Peláez
 

library alidayu

阿里大鱼短信平台

image

hao/alidayu

阿里大鱼短信平台

  • Thursday, May 31, 2018
  • by JZhao1020
  • Repository
  • 0 Watchers
  • 4 Stars
  • 53 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 783 % Grown

The README.md

阿里大鱼短信平台

开源地址

https://github.com/JZhao1020/alidayu, (*1)

1.安装

composer require hao/alidayu 

2.实例化

$config = [
    'key_id' => '', // AccessKeyId
    'key_secret' => '',
    'sign_name' => '',//签名名称
    'code' => '',//模板CODE
];
$send = new \Aliyun\Send($config);

2.1 发送单条短信

//发送短信
//短信参数内容
$data = [
    'code' => 12456,
    'product' => 'xxx'
];
$send->sendSms('手机号',$data);

2.2 短信发送记录查询

$send->queryDetails('手机号','查询日期(20180520)');

2.3 群发短信

$phone = [
    '手机号1',
    '手机号2'
];
//写法1(发送内容一致、短信签名一致):
//短信参数内容
$data = [
    'code' => 12456,
    'product' => 'xxx'
];
$send->sendBatchSms($phone,$data);
#################################################
//写法2(发送内容不一致、短信签名一致):
$data = [
    ['code' => 12456,'product' => 'xxx'],
    ['code' => 15555,'product' => 'xxx'],
];
$send->sendBatchSms($phone,$data);
##################################################
//写法3(发送内容不一致、短信签名不一致):
$data = [
    ['code' => 12456,'product' => 'xxx'],
    ['code' => 15555,'product' => 'xxx'],
];
$sign = ['签名1','签名2'];
$send->sendBatchSms($phone,$data,$sign);

The Versions

31/05 2018

dev-master

9999999-dev https://github.com/JZhao1020/alidayu

阿里大鱼短信平台

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • ext-curl *
  • ext-openssl *

 

by Hao

alidayu

31/05 2018

1.04

1.04.0.0 https://github.com/JZhao1020/alidayu

阿里大鱼短信平台

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • ext-curl *
  • ext-openssl *

 

by Hao

alidayu

29/05 2018

1.03

1.03.0.0 https://github.com/JZhao1020/alidayu

阿里大鱼短信平台

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • ext-curl *
  • ext-openssl *

 

by Hao

29/05 2018

1.02

1.02.0.0 https://github.com/JZhao1020/alidayu

阿里大鱼短信平台

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • ext-curl *
  • ext-openssl *

 

by Hao

29/05 2018

1.01

1.01.0.0 https://github.com/JZhao1020/alidayu

阿里大鱼短信平台

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • ext-curl *
  • ext-openssl *

 

by Hao