2017 © Pedro Peláez
 

library slack-logger

This is a simple package that allow a PHP script to send real time logs to Slack.

image

mathieuimbert/slack-logger

This is a simple package that allow a PHP script to send real time logs to Slack.

  • Saturday, April 1, 2017
  • by mathieuimbert
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1,634 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 9 % Grown

The README.md

slack-logger

Packagist

Latest Stable Version Latest Unstable Version Total Downloads License, (*1)

Unit Tests

Build Status Coverage Status, (*2)

Code Quality

SensioLabsInsight, (*3)

Description

This is a simple package that allow a PHP script to send real time logs to Slack., (*4)

Please be aware that the repository is still in an early phase, and every new commit might not be backward compatible., (*5)

Installation

Installation of Slack Logger is done using Composer., (*6)

composer require mathieuimbert/slack-logger

Usage

$logger = new \MathieuImbert\Slack\Logger\SlackLogger('https://hooks.slack.com/services/xxxxxxx/xxxxxxx/xxxxxxx');
$logger->warning('This a not test of the emergency broadcast system, this is the real thing');

Options

You can customize the name and the icon of your logger in the incoming webhook configuration, or you can do it from SlackLogger by passing the right options to he constructor:, (*7)

$logger = new \MathieuImbert\SlackLogger\SlackLogger(
    'https://hooks.slack.com/services/xxxxxxx/xxxxxxx/xxxxxxx',
    array('username' => 'My Slack Logger', 'icon_emoji' => ':cop:')
);

The Versions

01/04 2017

dev-master

9999999-dev

This is a simple package that allow a PHP script to send real time logs to Slack.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

01/04 2017

dev-add-insights-badge

dev-add-insights-badge

This is a simple package that allow a PHP script to send real time logs to Slack.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

06/03 2017

0.3.0

0.3.0.0

This is a simple package that allow a PHP script to send real time logs to Slack.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

01/03 2017

0.2.0

0.2.0.0

This is a simple package that allow a PHP script to send real time logs to Slack.

  Sources   Download

The Requires

 

The Development Requires

14/10 2016

0.1.1

0.1.1.0

This is a simple package that allow a PHP script to send real time to Slack.

  Sources   Download

The Requires

 

14/10 2016

0.1.0

0.1.0.0

This is a simple package that allow a PHP script to send real time to Slack.

  Sources   Download

The Requires