PHPackages                             ssswang/monolog-microsoft-teams - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. ssswang/monolog-microsoft-teams

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

ssswang/monolog-microsoft-teams
===============================

Monolog Handler for sending messages to Microsoft Teams using the Incoming Webhook connector

v5.0.0(1y ago)01.2kMITPHP

Since Feb 9Pushed 1y agoCompare

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

READMEChangelog (1)Dependencies (2)Versions (18)Used By (0)

monolog-microsoft-teams
=======================

[](#monolog-microsoft-teams)

Monolog Handler for sending messages to Microsoft Teams channels using the Incoming WebHook connector.

Install
-------

[](#install)

```
$ composer require ssswang/monolog-microsoft-teams
```

Usage
-----

[](#usage)

You need webhook\_url from Teams and also set mininum level of log message to be sent

```
$logger = new \Monolog\Logger('app');
$logger->pushHandler(new \MonologMicrosoftTeams\TeamsLogHandler(env('TEAMS_WEBHOOK_URL'), \Monolog\Logger::ERROR));
```

Usage with Laravel 5.4~5.5
--------------------------

[](#usage-with-laravel-5455)

```
$monolog = \Log::getMonolog();
$teamsHandler = new \MonologMicrosoftTeams\TeamsLogHandler(env('TEAMS_WEBHOOK_URL'), \Monolog\Logger::NOTICE);
$monolog->pushHandler($teamsHandler);
```

Usage with Laravel/Lumen framework (5.6+)
-----------------------------------------

[](#usage-with-laravellumen-framework-56)

Create a [custom channel](https://laravel.com/docs/master/logging#creating-custom-channels)

`config/logging.php`

```
'teams' => [
    'driver' => 'custom',
    'via' => \MonologMicrosoftTeams\TeamsLogChannel::class,
    'level' => 'error',
    'url' => 'INCOMING_WEBHOOK_URL',
],
```

Send an error message to the teams channel:

```
Log::channel('teams')->error('Error message\n\nDouble slash n To start new line.');
```

You can also add `teams` to the default `stack` channel so all errors are automatically send to the `teams` channel.

```
'channels' => [
    'stack' => [
        'driver' => 'stack',
        'channels' => ['single', 'teams'],
    ],
],
```

License
-------

[](#license)

monolog-microsoft-teams is available under the MIT license. See the LICENSE file for more info.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 93.3% 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 ~147 days

Recently: every ~96 days

Total

17

Last Release

665d ago

Major Versions

1.2.0 → v2.1.02022-02-19

1.3.0 → v2.0.02023-06-27

v2.0.0 → v3.0.02023-06-27

v3.0.7 → v4.0.02024-07-02

v4.0.0 → v5.0.02024-07-17

PHP version history (5 changes)1.0.0PHP ^7.0

1.1.0PHP ^7.2

v1.0.5PHP &gt;=5.6.4

1.2.0PHP ^7.2|^8.0

v2.1.0PHP ^7.2|^8

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1536108?v=4)[ssswang](/maintainers/ssswang)[@ssswang](https://github.com/ssswang)

---

Top Contributors

[![ssswang](https://avatars.githubusercontent.com/u/1536108?v=4)](https://github.com/ssswang "ssswang (28 commits)")[![matthewbdaly](https://avatars.githubusercontent.com/u/450801?v=4)](https://github.com/matthewbdaly "matthewbdaly (1 commits)")[![tomkyle](https://avatars.githubusercontent.com/u/412560?v=4)](https://github.com/tomkyle "tomkyle (1 commits)")

### Embed Badge

![Health badge](/badges/ssswang-monolog-microsoft-teams/health.svg)

```
[![Health](https://phpackages.com/badges/ssswang-monolog-microsoft-teams/health.svg)](https://phpackages.com/packages/ssswang-monolog-microsoft-teams)
```

###  Alternatives

[honeybadger-io/honeybadger-php

Honeybadger PHP library

381.5M4](/packages/honeybadger-io-honeybadger-php)

PHPackages © 2026

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