PHPackages                             sebbmeyer/laravel-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. sebbmeyer/laravel-teams-connector

ActiveLibrary[API Development](/categories/api)

sebbmeyer/laravel-teams-connector
=================================

Microsoft Teams Connector for Laravel 5/6

0.6.5(1y ago)33166.3k↓32.4%11[2 issues](https://github.com/sebbmeyer/laravel-teams-connector/issues)[1 PRs](https://github.com/sebbmeyer/laravel-teams-connector/pulls)MITPHPPHP &gt;=7.0.0

Since Jul 30Pushed 1y ago4 watchersCompare

[ Source](https://github.com/sebbmeyer/laravel-teams-connector)[ Packagist](https://packagist.org/packages/sebbmeyer/laravel-teams-connector)[ RSS](/packages/sebbmeyer-laravel-teams-connector/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (2)Versions (16)Used By (0)

Laravel Microsoft Teams Connector
---------------------------------

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

A Laravel 5/6 package to send notifications to Microsoft Teams by using "Incoming Webhook". This package also contains a card to send a Laravel Forge deployment notification, because Microsoft Teams notification is not supported at the moment.

If you are using Laravel 5.4 or older versions of laravel, please use the version 0.3.x of this package.

[![Forge card](https://camo.githubusercontent.com/c949d5cf4a15a09b24397d15e1f90beec3ad6da790a25bb6ae46c7d73f82cfe1/68747470733a2f2f707265766965772e6962622e636f2f64467a4452382f666f7267655f636172642e706e67)](https://camo.githubusercontent.com/c949d5cf4a15a09b24397d15e1f90beec3ad6da790a25bb6ae46c7d73f82cfe1/68747470733a2f2f707265766965772e6962622e636f2f64467a4452382f666f7267655f636172642e706e67)

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

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

You can install the package via composer:

```
composer require sebbmeyer/laravel-teams-connector
```

### Laravel

[](#laravel)

If you are using Laravel 5.5 and up, the service provider will automatically get registered.

For older versions of Laravel (&lt;5.5), you have to add the service provider and alias to config/app.php:

```
Sebbmyr\LaravelTeams\TeamsConnectorServiceProvider::class,
```

You can optionally use the facade for shorter code. Add this to your facades:

```
'TeamsConnector' => Sebbmyr\LaravelTeams\Facades\TeamsConnector::class,
```

### Lumen

[](#lumen)

For Lumen usage, the service provider should be registered manually by adding the following line in `bootstrap/app.php`:

```
$app->register(Sebbmyr\LaravelTeams\TeamsConnectorServiceProvider::class);
```

### Configuration

[](#configuration)

For this package to work, you need to configure an "Incomming Webhook" connector in your targeted Teams channel and copy the url into a config file that you can publish like this:

```
php artisan vendor:publish --provider="Sebbmyr\LaravelTeams\TeamsConnectorServiceProvider"
```

... or you simple add the following to your `.env` file:

```
MICROSOFT_TEAMS_WEBHOOK=

```

Usage
-----

[](#usage)

How to send simple notification look at the readme of this package [sebbmeyer/php-microsoft-teams-connector](https://github.com/sebbmeyer/php-microsoft-teams-connector)

### Custom card - ForgeCard

[](#custom-card---forgecard)

You can create your own cards for every purpose you need, just extend the **AbstractCard** class and implement the `getMessage()` function.

```
\\ Sebbmyr\LaravelTeams\Cards\ForgeCard.php
public function getMessage()
{
    return [
        "@type" => "MessageCard",
        "@context" => "http://schema.org/extensions",
        "summary" => "Forge Card",
        "themeColor" => ($this->data["status"] === 'success') ? self::STATUS_SUCCESS : self::STATUS_ERROR,
        "title" => "Forge deployment message",
        "sections" => [
            [
                "activityTitle" => "",
                "activitySubtitle" => "",
                "activityImage" => "",
                "facts" => [
                    [
                        "name" => "Server:",
                        "value" => $this->data["server"]['name']
                    ],
                    [
                        "name" => "Site",
                        "value" => "[". $this->data["site"]["name"] ."](http://". $this->data["site"]["name"] .")"
                    ],                        [
                        "name" => "Commit hash:",
                        "value" => "[". $this->data["commit_hash"] ."](". $this->data["commit_url"] .")"
                    ],
                    [
                        "name" => "Commit message",
                        "value" => $this->data["commit_message"]
                    ]
                ],
                "text" => ($this->data["status"] === 'success') ? $this->data["commit_author"] ." deployed some fresh code!" : "Something went wrong :/"
            ]
        ]
    ];
}
```

### Custom Card

[](#custom-card)

You can use the `CustomCard` class and dynamically build out our card. [Based on Microsoft Legacy Card](https://docs.microsoft.com/en-us/outlook/actionable-messages/message-card-reference)

#### Available Methods

[](#available-methods)

- addTitle
- addText
- addColor
- addActivity
- addFacts
- addFactsText
- addImage
- addImages
- addAction

```
$card = New Sebbmyr\LaravelTeams\Cards\CustomCard('Title Test','Text Test');
$card->addColor('800080')
    ->addFactsText('Supported Laravel Versions',['5.x','6.x'])
    ->addFactsText('Unsupported Laravel Versions',['Before Version 5'])
    ->addAction('Laravel Website','http://www.laravel.com')
    ->addFacts('Facts Section',['Fact Name 1' => 'Fact Value 1','Fact Name 2' => 'Fact Value 2']);
app('TeamsConnector')->send($card);
```

### Adaptive Card

[](#adaptive-card)

To use an adaptive card see the documentation [here](https://github.com/sebbmeyer/php-microsoft-teams-connector#adaptivecard). Better support will coming soon.

License
-------

[](#license)

This Microsoft Teams connector for Laravel is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance40

Moderate activity, may be stable

Popularity44

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 72.7% 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 ~171 days

Recently: every ~391 days

Total

15

Last Release

491d ago

PHP version history (2 changes)v0.1.0PHP &gt;=5.4.0

0.4.0PHP &gt;=7.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/c017d96198ae8736ac3dffe9083b1c0cc95b9a7432a25ae7d64c6d44757048b3?d=identicon)[sebbmeyer](/maintainers/sebbmeyer)

---

Top Contributors

[![sebbmeyer](https://avatars.githubusercontent.com/u/31280996?v=4)](https://github.com/sebbmeyer "sebbmeyer (16 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (2 commits)")[![miguelwicht](https://avatars.githubusercontent.com/u/793813?v=4)](https://github.com/miguelwicht "miguelwicht (2 commits)")[![jorgv](https://avatars.githubusercontent.com/u/32174909?v=4)](https://github.com/jorgv "jorgv (1 commits)")[![snazy2000](https://avatars.githubusercontent.com/u/1378836?v=4)](https://github.com/snazy2000 "snazy2000 (1 commits)")

---

Tags

laravelmicrosoftconnectorTeamsconnectorsmessagecard

### Embed Badge

![Health badge](/badges/sebbmeyer-laravel-teams-connector/health.svg)

```
[![Health](https://phpackages.com/badges/sebbmeyer-laravel-teams-connector/health.svg)](https://phpackages.com/packages/sebbmeyer-laravel-teams-connector)
```

###  Alternatives

[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.8k3](/packages/defstudio-telegraph)[sebbmeyer/php-microsoft-teams-connector

PHP Microsoft Teams Connector

1201.1M3](/packages/sebbmeyer-php-microsoft-teams-connector)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

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