Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/symfony/mattermost-notifier

Symfony Mattermost Notifier Bridge
https://github.com/symfony/mattermost-notifier

component mattermost notifier php symfony symfony-component

Last synced: 3 months ago
JSON representation

Symfony Mattermost Notifier Bridge

Awesome Lists containing this project

README

        

Mattermost Notifier
===================

Provides [Mattermost](https://mattermost.com) 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
---------

* [Contributing](https://symfony.com/doc/current/contributing/index.html)
* [Report issues](https://github.com/symfony/symfony/issues) and
[send Pull Requests](https://github.com/symfony/symfony/pulls)
in the [main Symfony repository](https://github.com/symfony/symfony)