sirumobile/infobip-notifier
Composer 安装命令:
composer require sirumobile/infobip-notifier
包简介
Symfony Infobip Notifier Bridge
关键字:
README 文档
README
Provides Infobip integration for Symfony Notifier.
Requirements
- PHP 7.2
- Symfony Notifier 5.2+, HttpClient and EventDispatcher components
- Your API key and base url from Infobip
Installation
$ composer require sirumobile/infobip-notifier
Add correct DSN with your Infobip credentials to ENV. Then configure notifier and add InfobipTransportFactory to your services.
# .env INFOBIP_DSN=infobip://YOUR_APIKEY@YOUR_API_HOST?from=SENDER_NAME
# ./config/packages/notifier.yaml framework: notifier: texter_transports: infobip: '%env(INFOBIP_DSN)%'
# ./config/services.yaml Siru\Notifier\Bridge\Infobip\InfobipTransportFactory: tags: [ texter.transport_factory ]
Delivery reports
You can add notifyUrl-option where Infobip will send delivery reports for each message. You will need to implement the callback controller yourself. Check Infobip API documentation for example payload.
# .env INFOBIP_DSN=infobip://YOUR_APIKEY@YOUR_API_HOST?from=SENDER_NAME¬ifyUrl=https://yourapplication/callback/path
统计信息
- 总下载量: 145
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-04-24