qferr/ mandrill-bundle
此包最新版本(1.0.1)无可用许可证信息。
Symfony Mandrill Bundle
1.0.1
2022-07-14 08:36 UTC
Requires
- php: >=7.2.5
- symfony/config: ^4.4|^5.0
- symfony/dependency-injection: ^4.4|^5.0
- symfony/event-dispatcher: ^4.4|^5.0
- symfony/framework-bundle: ^4.4|^5.0
- symfony/http-foundation: ^4.4|^5.0
- symfony/http-kernel: ^4.4|^5.0
Requires (Dev)
- phpunit/phpunit: ~7.0
This package is auto-updated.
Last update: 2024-09-14 13:04:56 UTC
README
此包提供了以下Mandrill功能的集成
- Webhooks:监听消息事件(发送、硬退订、垃圾邮件等)并根据您的特定应用程序需求执行自定义操作。
安装
使用composer下载
composer require qferr/mandrill-bundle
注意,此包支持Symfony 4/5和PHP 7.2+
启用包
您的包应通过Flex自动启用。如果您不使用Flex,您需要在项目的config/bundles.php文件中手动启用包,添加以下行
<?php
return [
// ...
Qferrer\Symfony\MandrillBundle\QferrerMandrillBundle::class => ['all' => true],
];
配置参考
所有选项都在您的应用程序配置中的qferrer_mandrill
键下进行配置
qferrer_mandrill:
webhooks:
key: "%mandrill_webhook_key%"
url: "%mandrill_webhook_key%"
handler: "Qferrer\\Symfony\\MandrillBundle\\Handler\\WebhookHandler" # default handler
auth: "Qferrer\\Symfony\\MandrillBundle\\Security\\WebhookAuthentication" # default authentication service
Webhooks
key
- 类型: 字符串
- 必需: 仅当启用认证时
url
- 类型: 字符串
- 必需: 仅当启用认证时
handler
- 类型: 字符串
- 默认值:
Qferrer\Symfony\MandrillBundle\Handler\WebhookHandler
- 必需: 是
auth
- 类型: 字符串|bool
- 默认值:
Qferrer\Symfony\MandrillBundle\Security\WebhookAuthentication
- 必需: 是