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)33160.5k↑20.1%11[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 1mo 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

44

—

FairBetter than 92% of packages

Maintenance44

Moderate activity, may be stable

Popularity45

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

445d 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

[sebbmeyer/php-microsoft-teams-connector

PHP Microsoft Teams Connector

1191.1M3](/packages/sebbmeyer-php-microsoft-teams-connector)[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[api-ecosystem-for-laravel/dingo-api

A RESTful API package for the Laravel and Lumen frameworks.

3121.5M10](/packages/api-ecosystem-for-laravel-dingo-api)[mll-lab/laravel-graphiql

Easily integrate GraphiQL into your Laravel project

683.2M9](/packages/mll-lab-laravel-graphiql)[kirschbaum-development/laravel-openapi-validator

Automatic OpenAPI validation for Laravel HTTP tests

581.1M5](/packages/kirschbaum-development-laravel-openapi-validator)

PHPackages © 2026

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