{"id":14984048,"url":"https://github.com/symfony/discord-notifier","last_synced_at":"2026-01-24T18:04:30.797Z","repository":{"id":44439071,"uuid":"303474771","full_name":"symfony/discord-notifier","owner":"symfony","description":"Symfony Discord Notifier Bridge","archived":false,"fork":false,"pushed_at":"2024-11-29T09:10:48.000Z","size":92,"stargazers_count":35,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"7.2","last_synced_at":"2025-03-29T03:09:03.388Z","etag":null,"topics":["component","discord","notifier","php","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-10-12T18:10:55.000Z","updated_at":"2025-01-22T03:06:32.000Z","dependencies_parsed_at":"2023-02-13T22:55:17.870Z","dependency_job_id":"6bc9d1a2-c4eb-4e61-8451-95ea0d4588d9","html_url":"https://github.com/symfony/discord-notifier","commit_stats":{"total_commits":69,"total_committers":17,"mean_commits":"4.0588235294117645","dds":0.6666666666666667,"last_synced_commit":"f3d8368ca5ff80c1268a851f925e1f0c07997a8e"},"previous_names":[],"tags_count":74,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Fdiscord-notifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Fdiscord-notifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Fdiscord-notifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Fdiscord-notifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/symfony","download_url":"https://codeload.github.com/symfony/discord-notifier/tar.gz/refs/heads/7.2","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247284951,"owners_count":20913704,"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","discord","notifier","php","symfony","symfony-component"],"created_at":"2024-09-24T14:08:22.469Z","updated_at":"2026-01-24T18:04:25.776Z","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":"Discord Notifier\n================\n\nProvides [Discord](https://discord.com) integration for Symfony Notifier.\n\nDSN example\n-----------\n\n```\nDISCORD_DSN=discord://TOKEN@default?webhook_id=ID\n```\n\nwhere:\n - `TOKEN` the secure token of the webhook (returned for Incoming Webhooks)\n - `ID` the id of the webhook\n\nAdding Interactions to a Message\n--------------------------------\n\nWith a Discord message, you can use the `DiscordOptions` class to add some\ninteractive options called Embed `elements`.\n\n```php\nuse Symfony\\Component\\Notifier\\Bridge\\Discord\\DiscordOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\Discord\\Embeds\\DiscordEmbed;\nuse Symfony\\Component\\Notifier\\Bridge\\Discord\\Embeds\\DiscordFieldEmbedObject;\nuse Symfony\\Component\\Notifier\\Bridge\\Discord\\Embeds\\DiscordFooterEmbedObject;\nuse Symfony\\Component\\Notifier\\Bridge\\Discord\\Embeds\\DiscordMediaEmbedObject;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\n\n$chatMessage = new ChatMessage('');\n\n// Create Discord Embed\n$discordOptions = (new DiscordOptions())\n    -\u003eusername('connor bot')\n    -\u003eaddEmbed((new DiscordEmbed())\n        -\u003ecolor(2021216)\n        -\u003etitle('New song added!')\n        -\u003ethumbnail((new DiscordMediaEmbedObject())\n        -\u003eurl('https://i.scdn.co/image/ab67616d0000b2735eb27502aa5cb1b4c9db426b'))\n        -\u003eaddField((new DiscordFieldEmbedObject())\n            -\u003ename('Track')\n            -\u003evalue('[Common Ground](https://open.spotify.com/track/36TYfGWUhIRlVjM8TxGUK6)')\n            -\u003einline(true)\n        )\n        -\u003eaddField((new DiscordFieldEmbedObject())\n            -\u003ename('Artist')\n            -\u003evalue('Alasdair Fraser')\n            -\u003einline(true)\n        )\n        -\u003eaddField((new DiscordFieldEmbedObject())\n            -\u003ename('Album')\n            -\u003evalue('Dawn Dance')\n            -\u003einline(true)\n        )\n        -\u003efooter((new DiscordFooterEmbedObject())\n            -\u003etext('Added ...')\n            -\u003eiconUrl('https://upload.wikimedia.org/wikipedia/commons/thumb/1/19/Spotify_logo_without_text.svg/200px-Spotify_logo_without_text.svg.png')\n        )\n    )\n;\n\n    // Add the custom options to the chat message and send the message\n    $chatMessage-\u003eoptions($discordOptions);\n\n    $chatter-\u003esend($chatMessage);\n```\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%2Fdiscord-notifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsymfony%2Fdiscord-notifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsymfony%2Fdiscord-notifier/lists"}