jyil / message-notify
MIT
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 11
pkg:composer/jyil/message-notify
Requires
- php: >=7.3
 - ext-json: *
 - hyperf/guzzle: ^1.1|^2.1|^3.0
 
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
 - hyperf/config: *
 - hyperf/di: ^2.2
 - hyperf/ide-helper: v2.2.*
 - hyperf/utils: ^2.0
 - phpunit/phpunit: ^9.4
 
This package is auto-updated.
Last update: 2025-10-12 09:19:41 UTC
README
功能
- 监控发送应用异常
 - 支持多种通道(钉钉群机器人、飞书群机器人、邮件、QQ 频道机器人、企业微信群机器人)
 - 支持扩展自定义通道
 
环境要求
- hyperf >= 2.0
 
安装
composer require jyil/message-notify -vvv
配置文件
发布配置文件config/message.php
hyperf vendor:publish jyil/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)。有关更多信息,请参见协议文件。