he / sms
常用 短信服务
v4
2021-05-19 07:59 UTC
Requires
- php: >=7.0
- ext-curl: *
- ext-json: *
This package is not auto-updated.
Last update: 2024-04-24 20:57:02 UTC
README
###常用短信运营商封装
###example
####配置文件
$config = [
'lsmApiKey' => '',
'txAppId' => '',
'txAppKey' => '',
'aliAccessKeyId' => '',
'aliAccessKeySecret' => '',
'aliSignName' => '',
'aliTemplateCode' => ''
'teCustomerId' => '',
'teAppkey' => '',
];
###实例化
$aliSms = new he\sms\AliSms($config);
$aliSms->setPhone('10080');
$aliSms->setCountryCode('86');
$aliSms->send('1234');
$lsmSms = new he\sms\LuosimaoSms($config);
...
$txSms = new he\TxSms($config);
...
$txSms->sendVoice(1234)
#只实现了telesing verifySms verifyVoice
$telesignSms = new he\TeleSignSms($config);
...