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

ActiveLibrary

sysvale/rocketchat-monolog-handler
==================================

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

v2.0.0(1y ago)816.0k↓26.7%9[1 PRs](https://github.com/Sysvale/rocketchat-monolog-handler/pulls)MITPHPPHP ^8.2 || ^8.3CI passing

Since Apr 30Pushed 3mo ago1 watchersCompare

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

READMEChangelog (7)Dependencies (3)Versions (15)Used By (0)

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

[](#rocketchat-monolog-handler-by-sysvale)

[![Monolog Handler CI](https://github.com/Sysvale/rocketchat-monolog-handler/workflows/Monolog%20Handler%20CI/badge.svg)](https://github.com/Sysvale/rocketchat-monolog-handler/workflows/Monolog%20Handler%20CI/badge.svg)

Monolog Handler para ser usado em projetos Laravel. Adaptado da implementação para Slack.

Inspirado nos seguintes projetos:

-
-

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

[](#instalação)

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

Uso
---

[](#uso)

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

```
use Sysvale\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

53

—

FairBetter than 97% of packages

Maintenance66

Regular maintenance activity

Popularity34

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~440 days

Total

9

Last Release

370d ago

Major Versions

v1.2.1 → v2.0.02025-05-13

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

v1.2.0PHP &gt;=7.1 || ^8.0

v1.2.1PHP &gt;=7.1 || ^8.0 || ^8.1

v2.0.0PHP ^8.2 || ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/80c16d2abfca7bb24c17270c351e3d746aa86bd080583b494659745b6b140327?d=identicon)[geidsonc](/maintainers/geidsonc)

![](https://www.gravatar.com/avatar/6ea9560bf1dcf763106c8472f07c8f5aa2fa0f9338b0f1396288263ff43829ed?d=identicon)[esron](/maintainers/esron)

---

Top Contributors

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

---

Tags

hacktoberfestlaravelmonolog-handlersysvale

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[google/cloud

Google Cloud Client Library

1.2k16.2M53](/packages/google-cloud)[google/cloud-core

Google Cloud PHP shared dependency, providing functionality useful to all components.

343121.4M79](/packages/google-cloud-core)[googleads/googleads-php-lib

Google Ad Manager SOAP API Client Library for PHP

67410.3M25](/packages/googleads-googleads-php-lib)[tempest/framework

The PHP framework that gets out of your way.

2.1k23.1k9](/packages/tempest-framework)[akamai-open/edgegrid-client

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client\_Auth.html

482.5M6](/packages/akamai-open-edgegrid-client)

PHPackages © 2026

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