exileed / rocketchat-monolog

Monolog Handler for sending messages to RocketChat channels

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RocketChat Monolog handler

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

Install

Via Composer

$ composer require exileed/rocketchat-monolog

Usage

Base usage

$webhook = 'https://rocket.chat.local/hooks/bd97pizfGu3S5q5oT/ggdfhryhge';
$channelId = '12345';

$rocketChatHandler = new RocketChatHandler\RocketChatHandler([$webhook], $channelId);

$monolog = new Monolog\Logger('Rocket.Chat');
$monolog->pushHandler($rocketChatHandler);

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

$ composer test

Security

If you discover any security related issues, please email me@exileed.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

TODO

  • Async request

About

Monolog Handler for sending messages to RocketChat channels

License:MIT License


Languages

Language:PHP 100.0%