PHPackages                             lemestwo/rocketchat-monolog-handler - 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. lemestwo/rocketchat-monolog-handler

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

lemestwo/rocketchat-monolog-handler
===================================

A Rocket.chat Monolog Handler meant to be used in Laravel projects developed by Sysvale Softgroup

1.2.2(4y ago)01.8kMITPHPPHP ^8.0

Since Apr 30Pushed 4y agoCompare

[ Source](https://github.com/lemestwo/rocketchat-monolog-handler)[ Packagist](https://packagist.org/packages/lemestwo/rocketchat-monolog-handler)[ RSS](/packages/lemestwo-rocketchat-monolog-handler/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (11)Used By (0)

[Rocket.chat](https://rocket.chat/) Monolog Handler
===================================================

[](#rocketchat-monolog-handler)

Instalação
----------

[](#instalação)

```
composer require lemestwo/rocketchat-monolog-handler
```

Uso
---

[](#uso)

Importe a seguinte classe no seu `config/logging.php`

```
use Drugovich\Logging\RocketChatHandler;
```

Adicione o código abaixo ao Array de `channels` no arquivo `logging.php`

```
'rocketchat' => [
    'driver' => 'monolog',
    'handler' => RocketChatHandler::class,
    'with' => [
        'webhooks' => [env('ROCKET_CHAT_WEBHOOK', '')],
        'username' => 'Awesome Laravel Bot',
        'emoji' => ':rotating_light:',
    ],
    'level' => 'warning',
],
```

Atualize o canal `stack` de:

```
'channels' => ['daily'],
```

para:

```
'channels' => ['daily', 'rocketchat'],
```

Lembre-se de adicionar as variáveis de ambiente

```
ROCKET_CHAT_WEBHOOK=

```

[Configure um WebHook](https://rocket.chat/docs/administrator-guides/integrations/) no seu servidor do Rocket.Chat

Você pode utilizar o seguinte script:

```
/* exported Script */
/* globals console, _, s */

/** Global Helpers
 *
 * console - A normal console instance
 * _       - An underscore instance
 * s       - An underscore string instance
 */

class Script {
  /**
   * @params {object} request
   */
  process_incoming_request({ request }) {

    // console is a global helper to improve debug
    console.log(request);

    return {
      content:{
        text: request.content.text,
        username: request.content.username,
        emoji: request.content.emoji,
        attachments: request.content.attachments
       }
    };
  }
}
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 56.7% 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 ~52 days

Recently: every ~86 days

Total

9

Last Release

1785d ago

PHP version history (2 changes)v1.1.2PHP &gt;=7.1

1.2.0PHP ^8.0

### Community

Maintainers

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

---

Top Contributors

[![esron](https://avatars.githubusercontent.com/u/12296599?v=4)](https://github.com/esron "esron (17 commits)")[![elaynelemos](https://avatars.githubusercontent.com/u/24370436?v=4)](https://github.com/elaynelemos "elaynelemos (6 commits)")[![lemestwo](https://avatars.githubusercontent.com/u/10396249?v=4)](https://github.com/lemestwo "lemestwo (4 commits)")[![davidribeiro](https://avatars.githubusercontent.com/u/11426456?v=4)](https://github.com/davidribeiro "davidribeiro (1 commits)")[![denissonleal](https://avatars.githubusercontent.com/u/9142644?v=4)](https://github.com/denissonleal "denissonleal (1 commits)")[![gab0gomes](https://avatars.githubusercontent.com/u/12296173?v=4)](https://github.com/gab0gomes "gab0gomes (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lemestwo-rocketchat-monolog-handler/health.svg)

```
[![Health](https://phpackages.com/badges/lemestwo-rocketchat-monolog-handler/health.svg)](https://phpackages.com/packages/lemestwo-rocketchat-monolog-handler)
```

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

86910.0M83](/packages/spatie-laravel-health)[illuminate/log

The Illuminate Log package.

6224.3M518](/packages/illuminate-log)[freshbitsweb/laravel-log-enhancer

Make debugging easier by adding more data to your laravel logs

346569.0k](/packages/freshbitsweb-laravel-log-enhancer)[marvinlabs/laravel-discord-logger

Logging to a discord channel in Laravel

2081.1M2](/packages/marvinlabs-laravel-discord-logger)[larabug/larabug

Laravel 6.x/7.x/8.x/9.x/10.x/11.x/12.x/13.x bug notifier

299549.3k1](/packages/larabug-larabug)[honeybadger-io/honeybadger-laravel

Honeybadger Laravel integration

431.2M](/packages/honeybadger-io-honeybadger-laravel)

PHPackages © 2026

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