Giter Club home page Giter Club logo

message-notify's Introduction

消息通知组件

功能

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

环境要求

  • hyperf >= 2.0

安装

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)。有关更多信息,请参见协议文件

message-notify's People

Contributors

vinchangit avatar

Stargazers

gandeng avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.