2017 © Pedro Peláez
 

library telegram-handler

Handle logs with telegram bot

image

ide2/telegram-handler

Handle logs with telegram bot

  • Monday, November 21, 2016
  • by rafaelnery
  • Repository
  • 1 Watchers
  • 19 Stars
  • 960 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 10 Versions
  • 3 % Grown

The README.md

TelegramHandler

SensioLabsInsight Scrutinizer Code Quality Build Status, (*1)

Handle logs with telegram bot, (*2)

Simple monolog with telegram, (*3)

Installation

Install the latest version with, (*4)

composer require ide2/telegram-handler

Basic Usage

<?php

require 'vendor/autoload.php';

use Monolog\Logger;
use Monolog\Handler\StreamHandler;
use TelegramHandler\TelegramHandler;
use TelegramHandler\TelegramFormatter;

// create a log channel
$token   = '123456:abcdefgdkjaskldjas';
$chat_id = 123456789;

$log     = new Logger('MyTestApplication');
$handler = new TelegramHandler($token, $chat_id, Logger::INFO);
$handler->setFormatter(new TelegramFormatter());
$log->pushHandler($handler);

$log->addInfo('Lorem ipsum dolor sit.', ['test', 'test test']);
$log->addError('Lorem ipsum dolor sit.');

The Versions

21/11 2016

dev-master

9999999-dev

Handle logs with telegram bot

  Sources   Download

MIT

The Requires

 

The Development Requires

by Renan Melo

21/11 2016

v2.0.2

2.0.2.0

Handle logs with telegram bot

  Sources   Download

MIT

The Requires

 

The Development Requires

by Renan Melo

21/11 2016

v2.0.3

2.0.3.0

Handle logs with telegram bot

  Sources   Download

MIT

The Requires

 

The Development Requires

by Renan Melo

27/05 2016

v2.0.1

2.0.1.0

Handle logs with telegram bot

  Sources   Download

MIT

The Requires

 

The Development Requires

by Renan Melo

01/04 2016

v2.0.0

2.0.0.0

Handle logs with telegram bot

  Sources   Download

MIT

The Requires

 

The Development Requires

by Renan Melo

28/03 2016

v1.0.6

1.0.6.0

Handle logs with telegram bot

  Sources   Download

MIT

The Requires

 

The Development Requires

by Renan Melo

28/03 2016

V1.0.3

1.0.3.0

Handle logs with telegram bot

  Sources   Download

MIT

The Requires

 

The Development Requires

by Renan Melo

28/03 2016

V1.0.2

1.0.2.0

Handle logs with telegram bot

  Sources   Download

MIT

The Requires

 

The Development Requires

by Renan Melo

28/03 2016

v1.0.1

1.0.1.0

Handle logs with telegram bot

  Sources   Download

MIT

The Requires

 

The Development Requires

by Renan Melo

28/03 2016

v1.0.0

1.0.0.0

Handle logs with telegram bot

  Sources   Download

MIT

The Requires

 

The Development Requires

by Renan Melo