2017 © Pedro Peláez
 

library dysms

阿里短信-适用Laravel、Yii、Thinkphp等任何PHP项目...

image

flc/dysms

阿里短信-适用Laravel、Yii、Thinkphp等任何PHP项目...

  • Saturday, March 24, 2018
  • by flc1125
  • Repository
  • 1 Watchers
  • 48 Stars
  • 4,618 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 16 Forks
  • 0 Open issues
  • 5 Versions
  • 38 % Grown

The README.md

阿里短信接口

Latest Stable Version Total Downloads php>=5.4 License 996.icu LICENSE, (*1)

PS:阿里大于 https://github.com/flc1125/alidayu, (*2)

安装

composer require flc/dysms

使用

<?php
use Flc\Dysms\Client;
use Flc\Dysms\Request\SendSms;

$config = [
    'accessKeyId'    => 'LTAIbVA2LRQ1tULr',
    'accessKeySecret' => 'ocS48RUuyBPpQHsfoWokCuz8ZQbGxl',
];

$client  = new Client($config);
$sendSms = new SendSms;
$sendSms->setPhoneNumbers('1500000000');
$sendSms->setSignName('叶子坑');
$sendSms->setTemplateCode('SMS_77670013');
$sendSms->setTemplateParam(['code' => rand(100000, 999999)]);
$sendSms->setOutId('demo');

print_r($client->execute($sendSms));

支持

  • 官方网址: https://www.aliyun.com/product/sms?spm=5176.8142029.388261.339.WL7atM
  • 官方API文档: https://help.aliyun.com/document_detail/55451.html?spm=5176.doc55289.6.556.pMlBIe
  • composer: https://getcomposer.org/

捐赠

如果你觉得本扩展对你有帮助,请捐赠以表支持,谢谢~~, (*3)

微信, (*4)

支付宝, (*5)

License

  • MIT
  • Anti 996

The Versions

24/03 2018

dev-master

9999999-dev

阿里短信-适用Laravel、Yii、Thinkphp等任何PHP项目...

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

aliyun alisms flc 阿里短信 dysms

16/01 2018

v1.0.2

1.0.2.0

阿里短信-适用Laravel、Yii、Thinkphp等任何PHP项目...

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

aliyun alisms flc 阿里短信 dysms

12/08 2017

v1.0.1

1.0.1.0

阿里短信-适用Laravel、Yii、Thinkphp等任何PHP项目...

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

flc 阿里短信 dysms

12/08 2017

v1.0

1.0.0.0

阿里短信-适用Laravel、Yii、Thinkphp等任何PHP项目...

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

flc 阿里短信 dysms

18/07 2017

v0.1

0.1.0.0

阿里短信;适用任何PHP项目,包括Laravel、Yii、Thinkphp等...

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

flc 阿里短信 dysms