leslie/sms

luosimao发送短信composer包

v1.0 2018-09-07 03:00 UTC

This package is auto-updated.

Last update: 2021-01-11 07:57:34 UTC


README

集成Luosimao的短信触发和群发的composer包

使用示例:

使用方法:composer require leslie/sms dev-master

require 'vendor/autoload.php';

use Leslie\Sms\Sms;

//api key可在后台查看 短信->触发发送下面查看

$sms = new Sms(array('api_key' => 'xxxxxxxxxxxxxxxxxxxxx', 'use_ssl' => false));

//send 单发接口,签名需在后台报备

$res = $sms->send('xxxxxxxxxxxxx', '验证码:19272【铁壳测试】');

//sendbatch群发接口

//$res = $sms->send_batch($mobile_list = array(), $message = array(), $time = '');

//deposit 余额查询

$res = $sms->get_deposit();