myxland / think-sms
Thinkphp 5.1 SMS Library, base on overtrue/easy-sms
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:think-extend
Requires
- overtrue/easy-sms: ~1.0
This package is not auto-updated.
Last update: 2025-03-30 07:26:05 UTC
README
安装
composer require myxland/think-sms:dev-master
php think sms:config
用法
下载证书文件
https://curl.haxx.se/ca/cacert.pem
修改php.ini
curl.cainfo = /绝对路径/cacert.pem
<?php
use myxland\sms\Sms;
$result = Sms::app()->send(15804245680, [
'template' => 'SMS_10996345',
'data' => [
'code' => 6379
],
]);
var_dump($result);