承接 symfony/message-bird-notifier 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

symfony/message-bird-notifier

最新稳定版本:v8.0.0

Composer 安装命令:

composer require symfony/message-bird-notifier

包简介

Symfony MessageBird Notifier Bridge

README 文档

README

Provides MessageBird integration for Symfony Notifier.

DSN example

MESSAGEBIRD_DSN=messagebird://TOKEN@default?from=FROM

where:

  • TOKEN is your MessageBird token
  • FROM is your sender

Adding Options to a Message

With a MessageBird Message, you can use the MessageBirdOptions class to add message options.

use Symfony\Component\Notifier\Message\SmsMessage;
use Symfony\Component\Notifier\Bridge\MessageBird\MessageBirdOptions;

$sms = new SmsMessage('+1411111111', 'My message');

$options = (new MessageBirdOptions())
    ->type('test_type')
    ->scheduledDatetime('test_scheduled_datetime')
    ->createdDatetime('test_created_datetime')
    ->dataCoding('test_data_coding')
    ->gateway(999)
    ->groupIds(['test_group_ids'])
    ->mClass(888)
    ->reference('test_reference')
    ->reportUrl('test_report_url')
    ->shortenUrls(true)
    ->typeDetails('test_type_details')
    ->validity(777)
    // ...
    ;

// Add the custom options to the sms message and send the message
$sms->options($options);

$texter->send($sms);

Resources

统计信息

  • 总下载量: 154.55k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 9
  • 点击次数: 1
  • 依赖项目数: 2
  • 推荐数: 1

GitHub 信息

  • Stars: 9
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-04-18