jdlxnl/slack
Composer 安装命令:
composer require jdlxnl/slack
包简介
Wrapper around slack library to make notification easier
README 文档
README
Ads some decoration and utility functions around Laravels slack notification channel. Mainly focussed around Personas as sender, and functionality to build custom payloads.
Installation
composer require jdlxnl/slack
Usage
use Jdlx\Slack\Notifications\SlackNotification; use Jdlx\Slack\Sender; use Jdlx\Slack\Slack; use Jdlx\Task\Slack\Attachment\TaskFailure; $builder = (new TaskFailure())->withJob($job)->withTaskLog($log); Slack::channel()->notify( new SlackNotification( $title, Sender::persona(Sender::TASK_RUNNER), $builder->toSlackAttachment() ));
统计信息
- 总下载量: 1.25k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-12-23