{"id":14984056,"url":"https://github.com/symfony/rocket-chat-notifier","last_synced_at":"2025-06-29T08:36:46.655Z","repository":{"id":44439030,"uuid":"239547400","full_name":"symfony/rocket-chat-notifier","owner":"symfony","description":"Symfony RocketChat Notifier Bridge","archived":false,"fork":false,"pushed_at":"2024-11-29T09:08:47.000Z","size":102,"stargazers_count":12,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"7.2","last_synced_at":"2025-01-29T14:38:45.706Z","etag":null,"topics":["component","notifier","php","rocketchat","symfony","symfony-component"],"latest_commit_sha":null,"homepage":"https://symfony.com/notifier","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/symfony.png","metadata":{"funding":{"github":"fabpot","tidelift":"packagist/symfony/symfony","custom":"https://symfony.com/sponsor"},"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-10T15:40:18.000Z","updated_at":"2024-09-26T09:09:08.000Z","dependencies_parsed_at":"2023-02-18T15:15:57.175Z","dependency_job_id":"6318b65c-62f8-4f78-ba1a-c05ff3890e2c","html_url":"https://github.com/symfony/rocket-chat-notifier","commit_stats":{"total_commits":67,"total_committers":16,"mean_commits":4.1875,"dds":0.6567164179104478,"last_synced_commit":"b17bff59107b51753e3e347c5194dc304019daf7"},"previous_names":[],"tags_count":83,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Frocket-chat-notifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Frocket-chat-notifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Frocket-chat-notifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Frocket-chat-notifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/symfony","download_url":"https://codeload.github.com/symfony/rocket-chat-notifier/tar.gz/refs/heads/7.2","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237117154,"owners_count":19258364,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["component","notifier","php","rocketchat","symfony","symfony-component"],"created_at":"2024-09-24T14:08:23.022Z","updated_at":"2025-02-04T12:32:13.022Z","avatar_url":"https://github.com/symfony.png","language":"PHP","funding_links":["https://github.com/sponsors/fabpot","https://tidelift.com/funding/github/packagist/symfony/symfony","https://symfony.com/sponsor"],"categories":[],"sub_categories":[],"readme":"RocketChat Notifier\n===================\n\nProvides [RocketChat](https://rocket.chat) integration for Symfony Notifier.\n\nDSN example\n-----------\n\n```\nROCKETCHAT_DSN=rocketchat://ACCESS_TOKEN@default?channel=CHANNEL\n```\n\nwhere:\n - `ACCESS_TOKEN` is your RocketChat webhook token\n - `CHANNEL` is your RocketChat channel, it may be overridden in the payload\n\nExample (be sure to escape the middle slash with %2F):\n\n```\n# Webhook URL: https://rocketchathost/hooks/a847c392165c41f7bc5bbf273dd701f3/9343289d1c33464bb15ef132b5a7628d\nROCKETCHAT_DSN=rocketchat://a847c392165c41f7bc5bbf273dd701f3%2F9343289d1c33464bb15ef132b5a7628d@rocketchathost?channel=channel\n```\n\nAttachments and Payload\n-----------------------\n\nWhen creating a `ChatMessage`, you can add payload and multiple attachments to\n`RocketChatOptions`. These enable you to customize the name or the avatar of the\nbot posting the message, and to add files to it.\n\nThe payload can contain any data you want; its data is processed by a\nRocket.Chat Incoming Webhook Script which you can write to best suit your needs.\nFor example, you can use this script to send the raw payload to Rocket.Chat:\n\n```javascript\n class Script {\n     process_incoming_request({ request }) {\n         return {\n             request.content\n         };\n     }\n}\n```\n\nWhen using this script, the Payload must be indexed following Rocket.Chat\nPayload convention:\n\n```php\n$payload = [\n   'alias' =\u003e 'Bot Name',\n   'emoji' =\u003e ':joy:', // Emoji used as avatar\n   'avatar' =\u003e 'http://site.com/logo.png', // Overridden by emoji if provided\n   'channel' =\u003e '#myChannel', // Overrides the DSN's channel setting\n];\n\n$attachement1 = [\n    'color' =\u003e '#ff0000',\n    'title' =\u003e 'My title',\n    'text' =\u003e 'My text',\n    // ...\n];\n\n$attachement2 = [\n    'color' =\u003e '#ff0000',\n    'title' =\u003e 'My title',\n    'text' =\u003e 'My text',\n    // ...\n];\n\n// For backward compatibility reasons, both usages are valid\n$rocketChatOptions = new RocketChatOptions($attachement1, $payload);\n$rocketChatOptions = new RocketChatOptions([$attachement1, $attachement2], $payload);\n```\n\n**Note:** the `text` and `attachments` keys of the payload will be overridden\nrespectively by the ChatMessage's subject and the attachments provided in\nRocketChatOptions' constructor.\n\nSee Also\n--------\n\n * [Rocket.Chat Webhook Integration](https://docs.rocket.chat/guides/administration/admin-panel/integrations)\n * [Rocket.Chat Message Payload](https://developer.rocket.chat/reference/api/rest-api/endpoints/core-endpoints/chat-endpoints/postmessage#payload)\n\nResources\n---------\n\n * [Contributing](https://symfony.com/doc/current/contributing/index.html)\n * [Report issues](https://github.com/symfony/symfony/issues) and\n   [send Pull Requests](https://github.com/symfony/symfony/pulls)\n   in the [main Symfony repository](https://github.com/symfony/symfony)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsymfony%2Frocket-chat-notifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsymfony%2Frocket-chat-notifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsymfony%2Frocket-chat-notifier/lists"}