ydg / message-notify
message notify sdk
Installs: 1 483
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
Requires
- php: ^7.0|^8.0
- ext-json: *
- guzzlehttp/guzzle: >=6.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.12
- phpunit/phpunit: ^9.5
- vlucas/phpdotenv: ^5.0
This package is auto-updated.
Last update: 2025-02-28 04:13:17 UTC
README
介绍
- 快速便捷的开发消息通知
- 支持钉钉、飞书、企业微信以及自定义通知渠道
- 支持文本、markdown以及自定义消息模板
安装
$ composer require ydg/message-notify
使用
<?php use Ydg\MessageNotice\Channel\DingTalkChannel; use Ydg\MessageNotice\MessageNotify; use Ydg\MessageNotice\Template\Text; MessageNotify::make() ->setChannel(DingTalkChannel::class, 'https://oapi.dingtalk.com/robot/send?access_token=xxx') ->setTitle('标题') ->setText('通知测试') ->setTemplate(Text::class) ->send();
协议
MIT 许可证(MIT)。有关更多信息,请参见协议文件。