symfony/amazon-sns-notifier 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

symfony/amazon-sns-notifier

最新稳定版本:v8.0.0

Composer 安装命令:

composer require symfony/amazon-sns-notifier

包简介

Provides Amazon SNS integration for Symfony Notifier.

README 文档

README

Provides Amazon SNS integration for Symfony Notifier.

DSN example

AMAZON_SNS_DSN=sns://ACCESS_ID:ACCESS_KEY@default?region=REGION&profile=PROFILE&sslmode=SSLMODE

where:

  • ACCESS_ID is your AWS access key id
  • ACCESS_KEY is your AWS access key secret
  • REGION is the targeted AWS region (optional, default: us-east-1)
  • PROFILE is the name of your AWS configured profile (optional, default: default)
  • SSLMODE https is used by default. It can be changed by setting value to disable, http will be used

Adding Options to a Chat Message

With an Amazon SNS Chat Message, you can use the AmazonSnsOptions class to add message options.

use Symfony\Component\Notifier\Message\ChatMessage;
use Symfony\Component\Notifier\Bridge\AmazonSns\AmazonSnsOptions;

$chatMessage = new ChatMessage('Contribute To Symfony');

$options = (new AmazonSnsOptions('topic_arn'))
    ->subject('subject')
    ->messageStructure('json')
    // ...
    ;

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

$chatter->send($chatMessage);

Resources

统计信息

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

GitHub 信息

  • Stars: 8
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-07-27