PHPackages                             heczkoa/php-ms-teams-connector - 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. [API Development](/categories/api)
4. /
5. heczkoa/php-ms-teams-connector

ActiveLibrary[API Development](/categories/api)

heczkoa/php-ms-teams-connector
==============================

PHP Microsoft Teams Connector

0.2.2(5y ago)024MITPHPPHP &gt;=5.4.0

Since Aug 4Pushed 4y agoCompare

[ Source](https://github.com/andrzejenne/php-microsoft-teams-connector)[ Packagist](https://packagist.org/packages/heczkoa/php-ms-teams-connector)[ RSS](/packages/heczkoa-php-ms-teams-connector/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (15)Used By (0)

PHP Microsoft Teams Connector
-----------------------------

[](#php-microsoft-teams-connector)

A PHP package to send notifications to Microsoft Teams by using "Incoming Webhook". The aim of this package is to create your own cards and simply send notifications to your desired channel. At the moment this package supports the following formats: MessageCard, AdaptiveCard and HeroCard.

Package Installation - Composer
-------------------------------

[](#package-installation---composer)

You can install the package via composer:

```
composer require sebbmeyer/php-microsoft-teams-connector
```

Usage
-----

[](#usage)

When you want to send a simple notification to you channel, you can easily create a SimpleCard and send it via the TeamConnector

```
// create connector instance
$connector = new \Sebbmyr\Teams\TeamsConnector();
// create card
$card  = new \Sebbmyr\Teams\Cards\SimpleCard(['title' => 'Simple card title', 'text' => 'Simple card text']);
// send card via connector
$connector->send($card);
```

### MessageCard

[](#messagecard)

To send a MessageCard you can use the provided **CustomCard** class and add a color, facts, images, an activity, actions or a summary to it.

```
// create a custom card
$card  = new \Sebbmyr\Teams\Cards\CustomCard('Package update', 'A custom card class was added to the package.');
// add information
$card->setColor('01BC36')
    ->addFactsText('Supported PHP versions',['
