furison / page-one-notifier
该包最新版本(1.0.2)没有提供许可证信息。
Symfony Page One sms Notifier Bridge
1.0.2
2024-05-07 14:07 UTC
Requires
- php: >= 7.2.5
- symfony/http-client: ^4.3|^5.0|^6.0
- symfony/notifier: ^5.3|^6.3
README
为 Symfony Notifier 提供了 PageOne 集成。
DSN 示例
PAGE_ONE_DSN=page-one://USERNAME:PASSWORD@default?from=FROM
其中
USERNAME
是您的 API 用户名PASSWORD
是您的 API 密码FROM
是发送者名称
请查看您的账户信息:https://www.pageone.co.uk/login
安装
- 克隆此仓库
- 在 services 中添加以下配置
services: Furison\Notifier\PageOne\PageOneTransportFactory: parent: 'notifier.transport_factory.abstract' tags: ['texter.transport_factory']
- 在
notifier.yaml
文件中添加以下内容
framework: notifier: texter_transports: page-one: '%env(PAGE_ONE_DSN)%'
- 将 DSN(如上所示)添加到您的
.env
文件中 - 按照以下说明使用: https://symfony.com.cn/doc/current/notifier.html#creating-sending-notifications 但使用
['sms']
作为类型 - 大功告成!