PHPackages                             samplejunction/laravel-logger-for-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. samplejunction/laravel-logger-for-teams

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

samplejunction/laravel-logger-for-teams
=======================================

Laravel handler to sending messages to Microsoft Teams using the Incoming Webhook connector

v1.0.3(6y ago)0111MITPHPPHP ^7.0

Since Jun 17Pushed 6y agoCompare

[ Source](https://github.com/SampleJunction/laravel-logger-for-teams)[ Packagist](https://packagist.org/packages/samplejunction/laravel-logger-for-teams)[ RSS](/packages/samplejunction-laravel-logger-for-teams/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

laravel-logger-for-teams
========================

[](#laravel-logger-for-teams)

[![Latest Version on Packagist](https://camo.githubusercontent.com/847bd0ef6844fcd1ef90ccbab0d1473e698f096b7bbebca8a4d0af82b7354091/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73616d706c656a756e6374696f6e2f6c61726176656c2d6c6f676765722d666f722d7465616d732e737667)](https://packagist.org/packages/samplejunction/laravel-logger-for-teams)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/92cc4af359852f42996426b20290cf3cb24199b3f0f1db004f1e85f38cfb85af/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73616d706c656a756e6374696f6e2f6c61726176656c2d6c6f676765722d666f722d7465616d732e737667)](https://packagist.org/packages/samplejunction/laravel-logger-for-teams)

Laravel handler to sending messages to Microsoft Teams using the Incoming Webhook connector.

Installation
------------

[](#installation)

Require this package with composer.

```
$ composer require samplejunction/laravel-logger-for-teams
```

Integration
-----------

[](#integration)

Package tested and worked with Laravel and Lumen framework (5.7+). Create a [custom channel](https://laravel.com/docs/master/logging#creating-custom-channels) using laravel logging file or create new logging config file for lumen.

Add this configuration to `config/logging.php` file

```
'teams' => [
    'driver'    => 'custom',
    'via'       => \SampleJunction\LaravelLoggerForTeams\LoggerChannel::class,
    'level'     => 'debug',
    'url'       => env('INCOMING_WEBHOOK_URL'),
    'style'     => 'simple',    // Available style is 'simple' and 'card', default is 'simple'
],
```

or simply add name to specify different project name for each connector.

```
'teams' => [
    'driver'    => 'custom',
    'via'       => \SampleJunction\LaravelLoggerForTeams\LoggerChannel::class,
    'level'     => 'debug',
    'url'       => env('INCOMING_WEBHOOK_URL'),
    'style'     => 'simple',    // Available style is 'simple' and 'card', default is 'simple'
    'name'      => 'Dummy Project'
],
```

There are 2 available styles for microsoft teams message, using simple and card. You can see card style in results style which is difference from simple style.

After added configs to your `config/logging.php` file, add `INCOMING_WEBHOOK_URL` variable to your `.env` file with connector url from your microsoft teams connector. Please read [microsoft teams](https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/connectors/connectors-using) document to find your connector url.

Usage
-----

[](#usage)

To send a simple error message to teams channel, you kindly use script below:

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

Or you can include additional info to card message using log context.

```
Log::channel('teams')->error('Error message', [
    [
        'name'  => 'Assigned to',
        'value' => 'Unassigned',
    ]
]);
```

When using simple style, log context will ignore from 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'],
    ],
],
```

Results
-------

[](#results)

Here are some results of notifications sent to microsoft teams channel using card style.

- Debug log preview in microsoft teams channel [![Screenshot](https://raw.githubusercontent.com/margatampu/laravel-teams-logging/master/assets/ltl-1debug.png)](https://raw.githubusercontent.com/margatampu/laravel-teams-logging/master/assets/ltl-1debug.png)
- Info log preview in microsoft teams channel [![Screenshot](https://raw.githubusercontent.com/samplejunction/laravel-logger-for-teams/master/assets/ltl-2info.png)](https://raw.githubusercontent.com/samplejunction/laravel-logger-for-teams/master/assets/ltl-2info.png)
- Notice log preview in microsoft teams channel [![Screenshot](https://raw.githubusercontent.com/samplejunction/laravel-logger-for-teams/master/assets/ltl-3notice.png)](https://raw.githubusercontent.com/samplejunction/laravel-logger-for-teams/master/assets/ltl-3notice.png)
- Warning log preview in microsoft teams channel [![Screenshot](https://raw.githubusercontent.com/samplejunction/laravel-logger-for-teams/master/assets/ltl-4warning.png)](https://raw.githubusercontent.com/samplejunction/laravel-logger-for-teams/master/assets/ltl-4warning.png)
- Error log preview in microsoft teams channel [![Screenshot](https://raw.githubusercontent.com/samplejunction/laravel-logger-for-teams/master/assets/ltl-5error.png)](https://raw.githubusercontent.com/samplejunction/laravel-logger-for-teams/master/assets/ltl-5error.png)
- Critical log preview in microsoft teams channel [![Screenshot](https://raw.githubusercontent.com/samplejunction/laravel-logger-for-teams/master/assets/ltl-6critical.png)](https://raw.githubusercontent.com/samplejunction/laravel-logger-for-teams/master/assets/ltl-6critical.png)
- Alert log preview in microsoft teams channel [![Screenshot](https://raw.githubusercontent.com/samplejunction/laravel-logger-for-teams/master/assets/ltl-7alert.png)](https://raw.githubusercontent.com/samplejunction/laravel-logger-for-teams/master/assets/ltl-7alert.png)
- Emergency log preview in microsoft teams channel [![Screenshot](https://raw.githubusercontent.com/samplejunction/laravel-logger-for-teams/master/assets/ltl-8emergency.png)](https://raw.githubusercontent.com/samplejunction/laravel-logger-for-teams/master/assets/ltl-8emergency.png)

License
-------

[](#license)

This laravel-teams-logging package is available under the MIT license. See the LICENSE file for more info.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~6 days

Total

2

Last Release

2513d ago

### Community

Maintainers

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

---

Top Contributors

[![akash-sj](https://avatars.githubusercontent.com/u/48245125?v=4)](https://github.com/akash-sj "akash-sj (4 commits)")

### Embed Badge

![Health badge](/badges/samplejunction-laravel-logger-for-teams/health.svg)

```
[![Health](https://phpackages.com/badges/samplejunction-laravel-logger-for-teams/health.svg)](https://phpackages.com/packages/samplejunction-laravel-logger-for-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)
