2017 © Pedro Peláez
 

yii2-extension yii2-slack

Simple Slack notifier

image

chornij/yii2-slack

Simple Slack notifier

  • Friday, May 6, 2016
  • by chornij
  • Repository
  • 1 Watchers
  • 0 Stars
  • 995 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 1 % Grown

The README.md

Yii2 Slack component

Simple Slack notifier, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist chornij/yii2-slack "~1.0"

or add, (*4)

"chornij/yii2-slack": "~1.0"

to the require section of your composer.json file., (*5)

Usage

To use Slack you need to set up Slack component:, (*6)

'components' => [
    'slack' => [
        'class' => 'chornij\slack\Client',
        'url' => 'https://hooks.slack.com/services/T00000000/B00000000/PS0000000000000000000000',
        'username' => 'My app backend',
    ],
],

You can also use it for logging:, (*7)

'components' => [
    'log' => [
        'targets' => [
            'slack-errors' => [
                'class' => 'chornij\slack\log\SlackTarget',
                'levels' => ['error'],
                'emoji' => ':monkey_face:',
                'exportInterval' => 1,
                'logVars' => [],
            ],
        ],
    ],
],

The Versions

06/05 2016

dev-master

9999999-dev

Simple Slack notifier

  Sources   Download

MIT

The Requires

 

extension yii2 slack

06/05 2016

1.0.1

1.0.1.0

Simple Slack notifier

  Sources   Download

MIT

The Requires

 

extension yii2 slack

20/04 2016

1.0.0

1.0.0.0

Simple Slack notifier

  Sources   Download

MIT

The Requires

 

extension yii2 slack