blackhilloldmonster / aliyun_sms_php
Aliyun SMS SDK for PHP
1.0.0
2018-03-14 07:36 UTC
Requires
- php: >=7.1.0
Requires (Dev)
- phpunit/phpunit: ~4.0
This package is not auto-updated.
Last update: 2024-09-29 05:01:53 UTC
README
安装
composer require blackhilloldmonster/aliyun_sms_php
使用
use BHOM\SMS\AliyunSMS; ..... ..... ..... $accessKeyId = ""; $accessKeySecret = ""; $region = ""; $endPointName = ""; $phonNumber = "13900000000"; $tpcode = "SMS_177777"; $tpparam = ["code"=>"992929"]; $sign = "签名"; $sms = new AliyunSMS($accessKeyId, $accessKeySecret,$region,$endPointName); $status = $sms->send($phonNumber,$tpcode,$tpparam,$sign);