PHPackages                             testmonitor/teams-client - 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. testmonitor/teams-client

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

testmonitor/teams-client
========================

The TestMonitor Teams Client.

v3.0.0(1y ago)22.4k↓73.4%2[1 PRs](https://github.com/testmonitor/teams-client/pulls)MITPHPPHP ^8.1

Since Nov 7Pushed 3w ago2 watchersCompare

[ Source](https://github.com/testmonitor/teams-client)[ Packagist](https://packagist.org/packages/testmonitor/teams-client)[ RSS](/packages/testmonitor-teams-client/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (6)Versions (5)Used By (0)

TestMonitor Teams Client
========================

[](#testmonitor-teams-client)

[![Latest Stable Version](https://camo.githubusercontent.com/3498f8af03c45dd750e85db5bf3df1c27a1b683bdb6c825a05049bb910ac48a6/68747470733a2f2f706f7365722e707567782e6f72672f746573746d6f6e69746f722f7465616d732d636c69656e742f762f737461626c65)](https://packagist.org/packages/testmonitor/teams-client)[![CircleCI](https://camo.githubusercontent.com/4ae5099b0e0a4ef55285bbb2377911896e7192448bcaa39805f1f2e4ff1d3e7d/68747470733a2f2f696d672e736869656c64732e696f2f636972636c6563692f70726f6a6563742f6769746875622f746573746d6f6e69746f722f7465616d732d636c69656e742e737667)](https://circleci.com/gh/testmonitor/teams-client)[![StyleCI](https://camo.githubusercontent.com/fc19c6a32435b217167349afba52718091cc682cb37ca91fceb0eae7373162b0/68747470733a2f2f7374796c6563692e696f2f7265706f732f3430363237353636382f736869656c64)](https://styleci.io/repos/406275668)[![codecov](https://camo.githubusercontent.com/906af6d9ad449261192ac114f0e5e11378c23285d3501aa17b11ae153117fe19/68747470733a2f2f636f6465636f762e696f2f67682f746573746d6f6e69746f722f7465616d732d636c69656e742f67726170682f62616467652e7376673f746f6b656e3d4f494b5a37585a4d5049)](https://codecov.io/gh/testmonitor/teams-client)[![License](https://camo.githubusercontent.com/b8933f1196f76e0ec2c59ef393011d60d59bd3d9a53fcb71b9572bb5a8266822/68747470733a2f2f706f7365722e707567782e6f72672f746573746d6f6e69746f722f7465616d732d636c69656e742f6c6963656e7365)](https://packagist.org/packages/testmonitor/teams-client)

This package provides a very basic, convenient, and unified wrapper for sending messages to Microsoft Teams using an incoming webhook.

It's mostly a based on Sebastian Bretschneider's [PHP Microsoft Teams Connector](https://github.com/sebbmeyer/php-microsoft-teams-connector), but uses Guzzle instead of the PHP CURL extension. This package leverages Microsoft Teams Adaptive Cards, making it a great fit for Power Automate.

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Usage](#usage)
- [Examples](#examples)
- [Tests](#tests)
- [Changelog](#changelog)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

Installation
------------

[](#installation)

To install the client you need to require the package using composer:

```
$ composer require testmonitor/teams-client

```

Use composer's autoload:

```
require __DIR__.'/../vendor/autoload.php';
```

You're all set up now!

Usage
-----

[](#usage)

Before you can post messages, you need to set up an incoming webhook in Teams:

- Launch the **Microsoft Teams** application.
- Select the **Teams** tab.
- Locate the channel where you want notifications delivered, then click the three dots (More options) next to it.
- Select **Workflows** from the dropdown menu.
- In the search bar, type "webhook".
- Choose the **Post to a channel when a webhook request is received** template.
- Enter a name for the workflow or use the default name.
- Click **Next**.
- Confirm the selected **Team** and **Channel**.
- Click **Add workflow** and your webhook URL will be provided.

Use the webhook URL to create a new client instance:

```
$teams = new \TestMonitor\Teams\Client('https://webhook.url/');
```

Examples
--------

[](#examples)

Post a simple message to Teams:

```
$card = new \TestMonitor\Teams\Resources\Card;

$card->addElement(
    new \TestMonitor\Teams\Resources\Card\Elements\TextBlock('Simple heading')
);

$teams->postMessage($card);
```

Adaptive cards allow way more comprehensive messages. Here's another example:

```
$card = new \TestMonitor\Teams\Resources\Card;

$title = new \TestMonitor\Teams\Resources\Card\Elements\TextBlock('Simple heading');
$facts = new \TestMonitor\Teams\Resources\Card\Elements\FactSet(
    new \TestMonitor\Teams\Resources\Card\Elements\Fact('Status', 'Completed'),
    new \TestMonitor\Teams\Resources\Card\Elements\Fact('Category', 'Feature request'),
);
$action = new \TestMonitor\Teams\Resources\Card\Actions\OpenUrl('https://www.testmonitor.com/');

$card->addElement($title)
     ->addElement($facts)
     ->addAction($action);

$teams->postMessage($card);
```

For more information on composing these messages, head over to [PHP Microsoft Teams Connector](https://github.com/sebbmeyer/php-microsoft-teams-connector)for more examples or refer to Microsoft's documentation on [Adaptive Cards](https://adaptivecards.io/).

Tests
-----

[](#tests)

The package contains integration tests. You can run them using PHPUnit.

```
$ vendor/bin/phpunit

```

Changelog
---------

[](#changelog)

Refer to [CHANGELOG](CHANGELOG.md) for more information.

Contributing
------------

[](#contributing)

Refer to [CONTRIBUTING](CONTRIBUTING.md) for contributing details.

Credits
-------

[](#credits)

- **Thijs Kok** - *Lead developer* - [ThijsKok](https://github.com/thijskok)
- **Stephan Grootveld** - *Developer* - [Stefanius](https://github.com/stefanius)
- **Frank Keulen** - *Developer* - [FrankIsGek](https://github.com/frankisgek)
- **Muriel Nooder** - *Developer* - [ThaNoodle](https://github.com/thanoodle)

License
-------

[](#license)

The MIT License (MIT). Refer to the [License](LICENSE.md) for more information.

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance70

Regular maintenance activity

Popularity22

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 51% of commits — single point of failure

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 ~567 days

Total

3

Last Release

563d ago

Major Versions

v1.0.0 → v2.0.02024-04-10

v2.0.0 → v3.0.02024-12-17

PHP version history (2 changes)v1.0.0PHP ^8.0

v2.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/47f66133b6b4806a16aaed043daa733f5e97adb7a10c9982d01a1cda9f492040?d=identicon)[stefanius](/maintainers/stefanius)

![](https://www.gravatar.com/avatar/39f48c881813b7d3b044ca5660aa5ab9e60b5dd7c34ed4a47acbb11bd20b7593?d=identicon)[thijskok](/maintainers/thijskok)

---

Top Contributors

[![thijskok](https://avatars.githubusercontent.com/u/1344550?v=4)](https://github.com/thijskok "thijskok (25 commits)")[![stefanius](https://avatars.githubusercontent.com/u/2707905?v=4)](https://github.com/stefanius "stefanius (19 commits)")[![Frankisgek](https://avatars.githubusercontent.com/u/487218?v=4)](https://github.com/Frankisgek "Frankisgek (5 commits)")

---

Tags

teamstestmonitorclientTeamstestmonitor

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/testmonitor-teams-client/health.svg)

```
[![Health](https://phpackages.com/badges/testmonitor-teams-client/health.svg)](https://phpackages.com/packages/testmonitor-teams-client)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[oat-sa/tao-core

TAO core extension

66143.7k122](/packages/oat-sa-tao-core)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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