{"id":21561668,"url":"https://github.com/testmonitor/teams-client","last_synced_at":"2025-04-10T12:05:48.070Z","repository":{"id":45323967,"uuid":"406275668","full_name":"testmonitor/teams-client","owner":"testmonitor","description":"The TestMonitor Microsoft Teams client.","archived":false,"fork":false,"pushed_at":"2024-12-17T09:41:19.000Z","size":42,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-17T23:17:36.289Z","etag":null,"topics":["teams","testmonitor"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"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/testmonitor.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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-09-14T07:54:35.000Z","updated_at":"2024-12-17T09:40:27.000Z","dependencies_parsed_at":"2024-01-10T11:24:04.722Z","dependency_job_id":"fd840e4c-4e13-4393-a8f6-4c47932a01b4","html_url":"https://github.com/testmonitor/teams-client","commit_stats":{"total_commits":9,"total_committers":4,"mean_commits":2.25,"dds":0.4444444444444444,"last_synced_commit":"754eaf3681c8edd2e3f15f861729f2ea42dd7554"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testmonitor%2Fteams-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testmonitor%2Fteams-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testmonitor%2Fteams-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testmonitor%2Fteams-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/testmonitor","download_url":"https://codeload.github.com/testmonitor/teams-client/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248216752,"owners_count":21066631,"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":["teams","testmonitor"],"created_at":"2024-11-24T09:27:32.420Z","updated_at":"2025-04-10T12:05:48.064Z","avatar_url":"https://github.com/testmonitor.png","language":"PHP","readme":"# TestMonitor Teams Client\n\n[![Latest Stable Version](https://poser.pugx.org/testmonitor/teams-client/v/stable)](https://packagist.org/packages/testmonitor/teams-client)\n[![CircleCI](https://img.shields.io/circleci/project/github/testmonitor/teams-client.svg)](https://circleci.com/gh/testmonitor/teams-client)\n[![StyleCI](https://styleci.io/repos/406275668/shield)](https://styleci.io/repos/406275668)\n[![codecov](https://codecov.io/gh/testmonitor/teams-client/graph/badge.svg?token=OIKZ7XZMPI)](https://codecov.io/gh/testmonitor/teams-client)\n[![License](https://poser.pugx.org/testmonitor/teams-client/license)](https://packagist.org/packages/testmonitor/teams-client)\n\nThis package provides a very basic, convenient, and unified wrapper for sending messages to Microsoft Teams using an incoming webhook.\n\nIt's mostly a based on Sebastian Bretschneider's [PHP Microsoft Teams Connector](https://github.com/sebbmeyer/php-microsoft-teams-connector), but uses Guzzle\ninstead of the PHP CURL extension. This package leverages Microsoft Teams Adaptive Cards, making it a great fit for Power Automate.\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [Examples](#examples)\n- [Tests](#tests)\n- [Changelog](#changelog)\n- [Contributing](#contributing)\n- [Credits](#credits)\n- [License](#license)\n\n## Installation\n\nTo install the client you need to require the package using composer:\n\n\t$ composer require testmonitor/teams-client\n\nUse composer's autoload:\n\n```php\nrequire __DIR__.'/../vendor/autoload.php';\n```\n\nYou're all set up now!\n\n## Usage\n\nBefore you can post messages, you need to set up an incoming webhook in Teams:\n\n- Launch the **Microsoft Teams** application.\n- Select the **Teams** tab.\n- Locate the channel where you want notifications delivered, then click the three dots (More options) next to it.\n- Select **Workflows** from the dropdown menu.\n- In the search bar, type \"webhook\".\n- Choose the **Post to a channel when a webhook request is received** template.\n- Enter a name for the workflow or use the default name.\n- Click **Next**.\n- Confirm the selected **Team** and **Channel**.\n- Click **Add workflow** and your webhook URL will be provided.\n\nUse the webhook URL to create a new client instance:\n\n```php\n$teams = new \\TestMonitor\\Teams\\Client('https://webhook.url/');\n```\n\n## Examples\n\nPost a simple message to Teams:\n\n```php\n$card = new \\TestMonitor\\Teams\\Resources\\Card;\n\n$card-\u003eaddElement(\n    new \\TestMonitor\\Teams\\Resources\\Card\\Elements\\TextBlock('Simple heading')\n);\n\n$teams-\u003epostMessage($card);\n```\n\nAdaptive cards allow way more comprehensive messages. Here's another example:\n\n```php\n$card = new \\TestMonitor\\Teams\\Resources\\Card;\n\n$title = new \\TestMonitor\\Teams\\Resources\\Card\\Elements\\TextBlock('Simple heading');\n$facts = new \\TestMonitor\\Teams\\Resources\\Card\\Elements\\FactSet(\n    new \\TestMonitor\\Teams\\Resources\\Card\\Elements\\Fact('Status', 'Completed'),\n    new \\TestMonitor\\Teams\\Resources\\Card\\Elements\\Fact('Category', 'Feature request'),\n);\n$action = new \\TestMonitor\\Teams\\Resources\\Card\\Actions\\OpenUrl('https://www.testmonitor.com/');\n\n$card-\u003eaddElement($title)\n     -\u003eaddElement($facts)\n     -\u003eaddAction($action);\n\n$teams-\u003epostMessage($card);\n```\n\nFor more information on composing these messages, head over to\n[PHP Microsoft Teams Connector](https://github.com/sebbmeyer/php-microsoft-teams-connector)\nfor more examples or refer to Microsoft's documentation on [Adaptive Cards](https://adaptivecards.io/).\n\n## Tests\n\nThe package contains integration tests. You can run them using PHPUnit.\n\n    $ vendor/bin/phpunit\n\n## Changelog\n\nRefer to [CHANGELOG](CHANGELOG.md) for more information.\n\n## Contributing\n\nRefer to [CONTRIBUTING](CONTRIBUTING.md) for contributing details.\n\n## Credits\n\n* **Thijs Kok** - *Lead developer* - [ThijsKok](https://github.com/thijskok)\n* **Stephan Grootveld** - *Developer* - [Stefanius](https://github.com/stefanius)\n* **Frank Keulen** - *Developer* - [FrankIsGek](https://github.com/frankisgek)\n* **Muriel Nooder** - *Developer* - [ThaNoodle](https://github.com/thanoodle)\n\n## License\n\nThe MIT License (MIT). Refer to the [License](LICENSE.md) for more information.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestmonitor%2Fteams-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftestmonitor%2Fteams-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestmonitor%2Fteams-client/lists"}