PHPackages                             culy/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. culy/monolog-microsoft-teams

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

culy/monolog-microsoft-teams
============================

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

1.2.0(5y ago)02.2k1MITPHPPHP ^7.2|^8.0

Since Feb 9Pushed 5y agoCompare

[ Source](https://github.com/culy247/monolog-microsoft-teams)[ Packagist](https://packagist.org/packages/culy/monolog-microsoft-teams)[ RSS](/packages/culy-monolog-microsoft-teams/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (7)Used By (1)

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

[](#monolog-microsoft-teams)

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

Install
-------

[](#install)

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

Usage
-----

[](#usage)

```
$logger = new \Culy\Microsoft\Teams\TeamsLogger('INCOMING_WEBHOOK_URL', \Monolog\Logger::ERROR);
$logger->error('Error message');
```

or

```
$logger = new \Monolog\Logger('app');
$logger->pushHandler(new \Culy\Microsoft\Teams\TeamsLogHandler('INCOMING_WEBHOOK_URL', \Monolog\Logger::ERROR));
```

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' => \Culy\Microsoft\Teams\TeamsLogChannel::class,
    'level' => 'error',
    'url' => 'INCOMING_WEBHOOK_URL',
],
```

Send an error message to the teams channel:

```
Log::channel('teams')->error('Error message');
```

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'],
    ],
],
```

Unit testing · PhpUnit
----------------------

[](#unit-testing--phpunit)

The tests require a valid Teams [Incoming Webhook URL.](https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/connectors/connectors-using) To provide this URL to PhpUnit, copy `phpunit.xml.dist` to `phpunit.xml`and set the URL in the `` section. Make sure to not commit your local *phpunit.xml* into the repo!

```

```

Run the tests on the command line:

```
$ composer test
```

License
-------

[](#license)

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

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 57.1% 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 ~270 days

Total

5

Last Release

1931d ago

PHP version history (3 changes)1.0.0PHP ^7.0

1.1.0PHP ^7.2

1.1.1PHP ^7.2|^8.0

### Community

Maintainers

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

---

Top Contributors

[![dev-amela](https://avatars.githubusercontent.com/u/235832134?v=4)](https://github.com/dev-amela "dev-amela (4 commits)")[![culy247](https://avatars.githubusercontent.com/u/61442956?v=4)](https://github.com/culy247 "culy247 (1 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)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[symfony/monolog-bridge

Provides integration for Monolog with various Symfony components

2.6k189.7M258](/packages/symfony-monolog-bridge)[rollbar/rollbar

Monitors errors and exceptions and reports them to Rollbar

33723.7M82](/packages/rollbar-rollbar)[illuminate/log

The Illuminate Log package.

6224.3M518](/packages/illuminate-log)[honeybadger-io/honeybadger-php

Honeybadger PHP library

381.5M4](/packages/honeybadger-io-honeybadger-php)[graycore/magento2-stdlogging

A Magento 2 module that changes all logging handlers to stdout

2382.6k](/packages/graycore-magento2-stdlogging)

PHPackages © 2026

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