Skip to content

hyperf异常监控报警通知(钉钉群机器人、飞书群机器人、邮件、QQ 频道机器人、企业微信群机器人)

License

Notifications You must be signed in to change notification settings

VinchanGit/message-notify

Repository files navigation

消息通知组件

功能

  • 监控发送应用异常
  • 支持多种通道(钉钉群机器人、飞书群机器人、邮件、QQ 频道机器人、企业微信群机器人)
  • 支持扩展自定义通道

环境要求

组件版本 框架版本
v2.0 hyperf 2.0.*
v3.0 hyperf 3.0.*
v3.0 hyperf 3.1.*

安装

composer require vinchan/message-notify -vvv

配置文件

发布配置文件config/message.php

hyperf vendor:publish vinchan/message-notify

使用

Notify::make()->setChannel(DingTalkChannel::class)
->setTemplate(Text::class)
->setTitle('标题')->setText('内容')->setAt(['all'])->setPipeline('info')
->send();

通道

通道名称 命名空间 支持格式
钉钉群 \MessageNotify\Channel\DingTalkChannel Text、Markdown
飞书群 \MessageNotify\Channel\FeiShuChannel Text、Markdown
企业微信群 \MessageNotify\Channel\WechatChannel Text、Markdown

格式

格式名称 命名空间
Text \MessageNotify\Template\Text
Markdown \MessageNotify\Template\Markdown

协议

MIT 许可证(MIT)。有关更多信息,请参见协议文件

About

hyperf异常监控报警通知(钉钉群机器人、飞书群机器人、邮件、QQ 频道机器人、企业微信群机器人)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages