jdlxnl / slack
Wrapper around slack library to make notification easier
Installs: 1 245
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
This package is auto-updated.
Last update: 2025-02-23 17:18:59 UTC
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() ));