PHPackages                             symfony/rocket-chat-notifier - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. symfony/rocket-chat-notifier

ActiveSymfony-notifier-bridge[Utility &amp; Helpers](/categories/utility)

symfony/rocket-chat-notifier
============================

Symfony RocketChat Notifier Bridge

v8.1.0(1mo ago)13127.2k↑15.5%1MITPHPPHP &gt;=8.4.1

Since Mar 16Pushed 4w ago3 watchersCompare

[ Source](https://github.com/symfony/rocket-chat-notifier)[ Packagist](https://packagist.org/packages/symfony/rocket-chat-notifier)[ Docs](https://symfony.com)[ Fund](https://symfony.com/sponsor)[ GitHub Sponsors](https://github.com/fabpot)[ RSS](/packages/symfony-rocket-chat-notifier/feed)WikiDiscussions 8.2 Synced 3d ago

READMEChangelog (10)Dependencies (4)Versions (114)Used By (0)

RocketChat Notifier
===================

[](#rocketchat-notifier)

Provides [RocketChat](https://rocket.chat) integration for Symfony Notifier.

DSN example
-----------

[](#dsn-example)

```
ROCKETCHAT_DSN=rocketchat://ACCESS_TOKEN@default?channel=CHANNEL

```

where:

- `ACCESS_TOKEN` is your RocketChat webhook token
- `CHANNEL` is your RocketChat channel, it may be overridden in the payload

Example (be sure to escape the middle slash with %2F):

```
# Webhook URL: https://rocketchathost/hooks/a847c392165c41f7bc5bbf273dd701f3/9343289d1c33464bb15ef132b5a7628d
ROCKETCHAT_DSN=rocketchat://a847c392165c41f7bc5bbf273dd701f3%2F9343289d1c33464bb15ef132b5a7628d@rocketchathost?channel=channel

```

Attachments and Payload
-----------------------

[](#attachments-and-payload)

When creating a `ChatMessage`, you can add payload and multiple attachments to `RocketChatOptions`. These enable you to customize the name or the avatar of the bot posting the message, and to add files to it.

The payload can contain any data you want; its data is processed by a Rocket.Chat Incoming Webhook Script which you can write to best suit your needs. For example, you can use this script to send the raw payload to Rocket.Chat:

```
 class Script {
     process_incoming_request({ request }) {
         return {
             request.content
         };
     }
}
```

When using this script, the Payload must be indexed following Rocket.Chat Payload convention:

```
$payload = [
   'alias' => 'Bot Name',
   'emoji' => ':joy:', // Emoji used as avatar
   'avatar' => 'http://site.com/logo.png', // Overridden by emoji if provided
   'channel' => '#myChannel', // Overrides the DSN's channel setting
];

$attachement1 = [
    'color' => '#ff0000',
    'title' => 'My title',
    'text' => 'My text',
    // ...
];

$attachement2 = [
    'color' => '#ff0000',
    'title' => 'My title',
    'text' => 'My text',
    // ...
];

// For backward compatibility reasons, both usages are valid
$rocketChatOptions = new RocketChatOptions($attachement1, $payload);
$rocketChatOptions = new RocketChatOptions([$attachement1, $attachement2], $payload);
```

**Note:** the `text` and `attachments` keys of the payload will be overridden respectively by the ChatMessage's subject and the attachments provided in RocketChatOptions' constructor.

See Also
--------

[](#see-also)

- [Rocket.Chat Webhook Integration](https://docs.rocket.chat/guides/administration/admin-panel/integrations)
- [Rocket.Chat Message Payload](https://developer.rocket.chat/reference/api/rest-api/endpoints/core-endpoints/chat-endpoints/postmessage#payload)

Sponsor
-------

[](#sponsor)

This package is looking for a [backer](https://symfony.com/backers).

Help Symfony by [sponsoring](https://symfony.com/sponsor) its development!

Resources
---------

[](#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)

###  Health Score

66

—

FairBetter than 99% of packages

Maintenance94

Actively maintained with recent releases

Popularity40

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity91

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~20 days

Recently: every ~2 days

Total

114

Last Release

29d ago

Major Versions

v6.4.13 → v7.1.62024-09-25

v6.4.24 → v7.4.0-RC12025-08-29

v7.4.0 → v8.0.02025-09-01

6.4.x-dev → 7.4.x-dev2026-06-05

7.4.x-dev → 8.0.x-dev2026-06-05

PHP version history (7 changes)v5.1.0-BETA1PHP ^7.2.5

v5.1.0PHP &gt;=7.2.5

v6.0.0-BETA1PHP &gt;=8.0.2

v6.1.0PHP &gt;=8.1

v7.0.0-RC1PHP &gt;=8.2

v8.0.0PHP &gt;=8.4

v8.1.0-BETA1PHP &gt;=8.4.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/47313?v=4)[Fabien Potencier](/maintainers/fabpot)[@fabpot](https://github.com/fabpot)

---

Top Contributors

[![nicolas-grekas](https://avatars.githubusercontent.com/u/243674?v=4)](https://github.com/nicolas-grekas "nicolas-grekas (60 commits)")[![fabpot](https://avatars.githubusercontent.com/u/47313?v=4)](https://github.com/fabpot "fabpot (28 commits)")[![derrabus](https://avatars.githubusercontent.com/u/1506493?v=4)](https://github.com/derrabus "derrabus (21 commits)")[![OskarStark](https://avatars.githubusercontent.com/u/995707?v=4)](https://github.com/OskarStark "OskarStark (18 commits)")[![jeremyFreeAgent](https://avatars.githubusercontent.com/u/176363?v=4)](https://github.com/jeremyFreeAgent "jeremyFreeAgent (2 commits)")[![xabbuh](https://avatars.githubusercontent.com/u/1957048?v=4)](https://github.com/xabbuh "xabbuh (2 commits)")[![chalasr](https://avatars.githubusercontent.com/u/7502063?v=4)](https://github.com/chalasr "chalasr (2 commits)")[![GromNaN](https://avatars.githubusercontent.com/u/400034?v=4)](https://github.com/GromNaN "GromNaN (2 commits)")[![iamvar](https://avatars.githubusercontent.com/u/7314366?v=4)](https://github.com/iamvar "iamvar (2 commits)")[![alexandre-daubois](https://avatars.githubusercontent.com/u/2144837?v=4)](https://github.com/alexandre-daubois "alexandre-daubois (2 commits)")[![keradus](https://avatars.githubusercontent.com/u/2716794?v=4)](https://github.com/keradus "keradus (1 commits)")[![jderusse](https://avatars.githubusercontent.com/u/578547?v=4)](https://github.com/jderusse "jderusse (1 commits)")[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (1 commits)")[![fancyweb](https://avatars.githubusercontent.com/u/3658119?v=4)](https://github.com/fancyweb "fancyweb (1 commits)")[![wouterj](https://avatars.githubusercontent.com/u/749025?v=4)](https://github.com/wouterj "wouterj (1 commits)")[![Jeroeny](https://avatars.githubusercontent.com/u/1517978?v=4)](https://github.com/Jeroeny "Jeroeny (1 commits)")

---

Tags

componentnotifierphprocketchatsymfonysymfony-componentnotifierrocketchat

### Embed Badge

![Health badge](/badges/symfony-rocket-chat-notifier/health.svg)

```
[![Health](https://phpackages.com/badges/symfony-rocket-chat-notifier/health.svg)](https://phpackages.com/packages/symfony-rocket-chat-notifier)
```

###  Alternatives

[symfony/telegram-notifier

Symfony Telegram Notifier Bridge

73991.5k7](/packages/symfony-telegram-notifier)[symfony/firebase-notifier

Symfony Firebase Notifier Bridge

12917.4k1](/packages/symfony-firebase-notifier)[chameleon-system/chameleon-base

The Chameleon System core.

1028.6k5](/packages/chameleon-system-chameleon-base)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
