PHPackages                             muhamadhhassan/laramost - 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. muhamadhhassan/laramost

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

muhamadhhassan/laramost
=======================

This package includes a Monolog handler and formatter for Mattermost to use in a Laravel log channel

v1.1.0(3y ago)3547↓66.7%MITPHP

Since Sep 23Pushed 3y ago2 watchersCompare

[ Source](https://github.com/muhamadhhassan/laramost)[ Packagist](https://packagist.org/packages/muhamadhhassan/laramost)[ RSS](/packages/muhamadhhassan-laramost/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (2)Dependencies (5)Versions (4)Used By (0)

Laramost
========

[](#laramost)

Laramost is a [Monolog](https://github.com/Seldaek/monolog) handler channel for Laravel that allows you to send log records to a mattermost channel.

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

[](#installation)

```
$ composer require muhamadhhassan/laramost
```

Levels
------

[](#levels)

Monolog levels are used to set the message color and icon

Level NameLevel ValueColorEmojiDEBUG100\#91C4EB🔍INFO200\#91C4EBℹ️NOTICE250\#99cc33📝WARNING300\#ffcc00⚠️ERROR400\#cc3300🐛CRITICAL500\#cc3300❌EMERGENCY600\#cc3300🚨Usage
-----

[](#usage)

### In Laravel Apps

[](#in-laravel-apps)

In your `config/logging.php` add the `mattermost` channel to the `channels` array:

```
use LaraMost\Formatter\MattermostFormatter;
use LaraMost\Handler\MattermostWebhookHandler;

'channels' => [
    'mattermost' => [
        'driver'  => 'monolog',
        'handler' => MattermostWebhookHandler::class,
        'formatter' => MattermostFormatter::class,
        'with' => [
            'hook' => 'https://your-mattermost.com/hooks/xxx-generatedkey-xxx',
        ],
        'level' => 'error'
    ],
],
```

Then simply, using Laravel `Log` facade:

```
Log::channel('mattermost')->error('Something went wrong', ['user_id' => 5]);
```

### In any PHP Apps

[](#in-any-php-apps)

```
use Monolog\Logger;
use LaraMost\Formatter\MattermostFormatter;
use LaraMost\Handler\MattermostWebhookHandler;

$logger = new Logger('application');
$handler = new MattermostWebhookHandler('https://your-mattermost.com/hooks/xxx-generatedkey-xxx', Logger::ERROR);
$handler->setFormatter(new MattermostFormatter())
$logger->pushHandler($handler);

$logger->error('Something went wrong', ['user_id' => 5]);
```

Both Will send the following message to your mattermost channel: [![error-message.png](docs/images/error-message.png)](docs/images/error-message.png)

> **Warning**: When you log to the `mattermost` channel make sure that the level is greater than or equals the one defined in `config/logging.php`

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

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 ~3 days

Total

2

Last Release

1376d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/14209308?v=4)[Muhammad Hassan](/maintainers/muhamadhhassan)[@muhamadhhassan](https://github.com/muhamadhhassan)

---

Top Contributors

[![muhamadhhassan](https://avatars.githubusercontent.com/u/14209308?v=4)](https://github.com/muhamadhhassan "muhamadhhassan (13 commits)")

---

Tags

loglaravelloggingmonologMattermost

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/muhamadhhassan-laramost/health.svg)

```
[![Health](https://phpackages.com/badges/muhamadhhassan-laramost/health.svg)](https://phpackages.com/packages/muhamadhhassan-laramost)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)[naoray/laravel-github-monolog

Log driver to store logs as github issues

10823.1k](/packages/naoray-laravel-github-monolog)

PHPackages © 2026

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