bellal / vodafone-sms
使用沃达丰批量短信API发送短信
0.1.1
2018-06-25 19:52 UTC
Requires
- php: >=5.4
This package is auto-updated.
Last update: 2024-08-29 04:37:40 UTC
README
沃达丰批量短信API
安装包
推荐的安装方法是使用Composer。
composer require bellal/vodafone-sms
<?php
use Bellal\VodafoneSMS\VodafoneAdapter;
$messageProviderInstance = new VodafoneAdapter([
'accountId' => 'VODAFONE_ACCOUNT_ID',
'password' => 'VODAFONE_PASS',
'secretKey' => 'VODAFONE_SECRET_KEY',
'senderName' => 'VODAFONE_SENDER_NAME',
]);
$result = $messageProviderInstance->send([
'to' => 'RECIEVER_NUMBER',
'text' => 'MESSAGE_BODY',
]);