symfony/smsbox-notifier
最新稳定版本:v8.0.1
Composer 安装命令:
composer require symfony/smsbox-notifier
包简介
Symfony Smsbox Notifier Bridge
关键字:
README 文档
README
Provides SMSBOX integration for Symfony Notifier.
DSN example
SMSBOX_DSN=smsbox://APIKEY@default?mode=MODE&strategy=STRATEGY&sender=SENDER
where:
APIKEYis your SMSBOX api keyMODEis the sending modeSTRATEGYis the type of your messageSENDERis the sender name
You can add numerous options to a message
With a SMSBOX Message, you can use the SmsboxOptions class and use the setters to add message options
use Symfony\Component\Notifier\Bridge\Smsbox\Enum\Charset; use Symfony\Component\Notifier\Bridge\Smsbox\Enum\Day; use Symfony\Component\Notifier\Bridge\Smsbox\Enum\Encoding; use Symfony\Component\Notifier\Bridge\Smsbox\Enum\Mode; use Symfony\Component\Notifier\Bridge\Smsbox\Enum\Strategy; use Symfony\Component\Notifier\Bridge\Smsbox\Enum\Udh; use Symfony\Component\Notifier\Bridge\Smsbox\SmsboxOptions; use Symfony\Component\Notifier\Message\SmsMessage; $sms = new SmsMessage('+33123456789', 'Your %1% message %2%'); $options = (new SmsboxOptions()) ->mode(Mode::Expert) ->strategy(Strategy::NotMarketingGroup) ->sender('Your sender') ->date('DD/MM/YYYY') ->hour('HH:MM') ->coding(Encoding::Unicode) ->charset(Charset::Iso1) ->udh(Udh::DisabledConcat) ->callback(true) ->allowVocal(true) ->maxParts(2) ->validity(100) ->daysMinMax(min: Day::Tuesday, max: Day::Friday) ->hoursMinMax(min: 8, max: 10) ->variable(['variable1', 'variable2']) ->dateTime(new \DateTime()) ->destIso('FR'); $sms->options($options); $texter->send($sms);
Smsbox notifier also provides Webhooks support. 🚀
统计信息
- 总下载量: 89
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-12-24