PHPackages                             colbygarland/laravel-mattermost-logging-driver - 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. colbygarland/laravel-mattermost-logging-driver

ActiveLibrary

colbygarland/laravel-mattermost-logging-driver
==============================================

A log driver for Mattermost

1.0.1(6y ago)24.8k2MITPHPPHP &gt;=7.1.0

Since Mar 1Pushed 5y agoCompare

[ Source](https://github.com/colbygarland/laravel-mattermost-logging-driver)[ Packagist](https://packagist.org/packages/colbygarland/laravel-mattermost-logging-driver)[ RSS](/packages/colbygarland-laravel-mattermost-logging-driver/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (6)Versions (5)Used By (0)

Laravel Mattermost Logging Driver
=================================

[](#laravel-mattermost-logging-driver)

This driver allows you to send your logs to your Mattermost instance. It will attach exception stack traces and the log context/

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

[](#installation)

```
composer require colbygarland/laravel-mattermost-logging-driver

```

Configuration
-------------

[](#configuration)

Add the new driver in your `config/logging.php`:

```
'mattermost' => [
    'driver' => 'custom',
    'via' => colbygarland\Mattermost\Logger\Factory::class,
    'webhook' => env('MATTERMOST_WEBHOOK'),
],
```

You can also add the `mattermost` channel to your `stack` driver if you wish:

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

Don't forget to set `LOG_CHANNEL=single` in your local and testing environments if you don't want to send logs to Mattermost during your tests.

### Options

[](#options)

You can add additional options after the `driver` and `via` keys in your `config/logging.php`.

OptionDefaultDescription`webhook`Your Mattermost webhook url. You must set this.`channel``town-square`The channel slug where the logs will be send.`level``Logger::INFO`Messages below this log level will not be sent.`level_mention``Logger::ERROR`Messages at or above this level will ping the usernames in the `mentions` key`title_format``'**[%s]** %s'`The message title format, expressed at a `sprintf()` formatted string`title_mention_format``' (ping %s)'`The message title mention format, expressed at a `sprintf()` formatted string`username``Laravel Log`The username to display`mentions``['@channel']`An array of usernames to ping`short_field_length``62`Context content longer than this value will be formatted with a long field`max_attachment_length``6000`Content past this length will be truncated to avoid Mattermost refusing the payload.`icon_url``null`A relative icon URL to display. `UrlGenerator` is called to get the full path, so you can use this in multiple environments without resetting the key.`scribe``null`If you want to override the default message builder, provide your own fully qualified `Scribe` interface implementation`message``null`If you want to override the default message, provide your own fully qualified `Message` interface implementationUsage
-----

[](#usage)

Use this driver like any other. You can send directly to the `mattermost` channel by using the `Log` facade, calling the `logger` function, or getting `LogManager` from the container. Then call `channel(...)` or `stack([...])`.

```
resolve(LogManager::class)
    ->channel('mattermost') // or ->stack(['single', 'bugsnag', 'mattermost'])
    ->info('Everyone loves a good log message.');
```

Sundries
--------

[](#sundries)

Contributions welcomed.

MIT Licensed. Do as you wish.

Based on

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 78.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 ~179 days

Total

3

Last Release

2272d ago

Major Versions

0.1.0 → 1.0.02019-03-01

PHP version history (2 changes)0.1.0PHP &gt;=7.1.3

1.0.0PHP &gt;=7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/3499e05373e194328a0563601a412902b8cac13db5c7138876ae053a0314cec3?d=identicon)[xcolbyg](/maintainers/xcolbyg)

---

Top Contributors

[![colbygarland](https://avatars.githubusercontent.com/u/8784306?v=4)](https://github.com/colbygarland "colbygarland (18 commits)")[![danielsdeboer](https://avatars.githubusercontent.com/u/13170241?v=4)](https://github.com/danielsdeboer "danielsdeboer (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/colbygarland-laravel-mattermost-logging-driver/health.svg)

```
[![Health](https://phpackages.com/badges/colbygarland-laravel-mattermost-logging-driver/health.svg)](https://phpackages.com/packages/colbygarland-laravel-mattermost-logging-driver)
```

###  Alternatives

[laravel/nightwatch

The official Laravel Nightwatch package.

3486.1M13](/packages/laravel-nightwatch)[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)

PHPackages © 2026

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