symfony/mattermost-notifier

Symfony Mattermost Notifier Bridge

Installs: 14 432

Dependents: 1

Suggesters: 0

Security: 0

Stars: 5

Watchers: 4

Forks: 3

Type:symfony-notifier-bridge

v6.0.0 2021-11-12 11:44 UTC

README

Provides Mattermost integration for Symfony Notifier.

DSN example

MATTERMOST_DSN=mattermost://ACCESS_TOKEN@HOST/PATH?channel=CHANNEL_ID

where:

  • ACCESS_TOKEN is your Mattermost access token
  • HOST is your Mattermost host
  • PATH is your Mattermost sub-path (optional)
  • CHANNEL_ID is your Mattermost default channel id

Usage

// to post to another channel
$options = new MattermostOptions();
$options->recipient('{channel_id}');

$message = (new ChatMessage($text))->options($options);

$chatter->send($message);

Resources