{"id":14983841,"url":"https://github.com/symfony/microsoft-teams-notifier","last_synced_at":"2025-10-19T11:31:50.127Z","repository":{"id":44937427,"uuid":"355850597","full_name":"symfony/microsoft-teams-notifier","owner":"symfony","description":"Symfony Microsoft Teams Notifier Bridge","archived":false,"fork":false,"pushed_at":"2024-11-29T09:10:06.000Z","size":99,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"7.2","last_synced_at":"2025-01-29T14:23:44.915Z","etag":null,"topics":["chat","component","microsoft-teams","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":"2021-04-08T09:52:52.000Z","updated_at":"2024-09-26T09:10:41.000Z","dependencies_parsed_at":"2023-02-18T15:16:07.637Z","dependency_job_id":"2700da71-bf13-4423-bcd1-2d5377ee65b7","html_url":"https://github.com/symfony/microsoft-teams-notifier","commit_stats":{"total_commits":44,"total_committers":14,"mean_commits":3.142857142857143,"dds":0.5454545454545454,"last_synced_commit":"546b0368928b5849d08728b7daf5d22a07a052b3"},"previous_names":[],"tags_count":62,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Fmicrosoft-teams-notifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Fmicrosoft-teams-notifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Fmicrosoft-teams-notifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Fmicrosoft-teams-notifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/symfony","download_url":"https://codeload.github.com/symfony/microsoft-teams-notifier/tar.gz/refs/heads/7.2","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237117149,"owners_count":19258362,"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":["chat","component","microsoft-teams","notifier","php","symfony","symfony-component"],"created_at":"2024-09-24T14:08:01.436Z","updated_at":"2025-10-19T11:31:44.872Z","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":"Microsoft Teams Notifier\n========================\n\nProvides [Microsoft Teams](https://www.microsoft.com/en/microsoft-365/microsoft-teams/free) integration\nthrough Incoming Webhook for Symfony Notifier.\n\nDSN example\n-----------\n\n```\nMICROSOFT_TEAMS_DSN=microsoftteams://default/PATH\n```\n\nwhere:\n - `PATH` has the following format: `webhookb2/{uuid}@{uuid}/IncomingWebhook/{id}/{uuid}`\n\nAdding text to a Message\n------------------------\n\nWith a Microsoft Teams, you can use the `ChatMessage` class::\n\n```php\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\MicrosoftTeamsTransport;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\n\n$chatMessage = (new ChatMessage('Contribute To Symfony'))-\u003etransport('microsoftteams');\n$chatter-\u003esend($chatMessage);\n```\n\nAdding Interactions to a Message\n--------------------------------\n\nWith a Microsoft Teams Message, you can use the `MicrosoftTeamsOptions` class\nto add [MessageCard options](https://docs.microsoft.com/en-us/outlook/actionable-messages/message-card-reference).\n\n```php\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action\\ActionCard;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action\\HttpPostAction;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action\\Input\\DateInput;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Action\\Input\\TextInput;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\MicrosoftTeamsOptions;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\MicrosoftTeamsTransport;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Section\\Field\\Fact;\nuse Symfony\\Component\\Notifier\\Bridge\\MicrosoftTeams\\Section\\Section;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\n\n$chatMessage = new ChatMessage('');\n\n// Action elements\n$input = new TextInput();\n$input-\u003eid('input_title');\n$input-\u003eisMultiline(true)-\u003emaxLength(5)-\u003etitle('In a few words, why would you like to participate?');\n\n$inputDate = new DateInput();\n$inputDate-\u003etitle('Proposed date')-\u003eid('input_date');\n\n// Create Microsoft Teams MessageCard\n$microsoftTeamsOptions = (new MicrosoftTeamsOptions())\n    -\u003etitle('Symfony Online Meeting')\n    -\u003etext('Symfony Online Meeting are the events where the best developers meet to share experiences...')\n    -\u003esummary('Summary')\n    -\u003ethemeColor('#F4D35E')\n    -\u003esection((new Section())\n        -\u003etitle('Talk about Symfony 5.3 - would you like to join? Please give a shout!')\n        -\u003efact((new Fact())\n            -\u003ename('Presenter')\n            -\u003evalue('Fabien Potencier')\n        )\n        -\u003efact((new Fact())\n            -\u003ename('Speaker')\n            -\u003evalue('Patricia Smith')\n        )\n        -\u003efact((new Fact())\n            -\u003ename('Duration')\n            -\u003evalue('90 min')\n        )\n        -\u003efact((new Fact())\n            -\u003ename('Date')\n            -\u003evalue('TBA')\n        )\n    )\n    -\u003eaction((new ActionCard())\n        -\u003ename('ActionCard')\n        -\u003einput($input)\n        -\u003einput($inputDate)\n        -\u003eaction((new HttpPostAction())\n            -\u003ename('Add comment')\n            -\u003etarget('http://target')\n        )\n    )\n;\n\n// Add the custom options to the chat message and send the message\n$chatMessage-\u003eoptions($microsoftTeamsOptions);\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%2Fmicrosoft-teams-notifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsymfony%2Fmicrosoft-teams-notifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsymfony%2Fmicrosoft-teams-notifier/lists"}