2017 © Pedro Peláez
 

library yii2-slack

Yii Post Message to Slack Channel

image

indielab/yii2-slack

Yii Post Message to Slack Channel

  • Wednesday, August 9, 2017
  • by nadar
  • Repository
  • 2 Watchers
  • 2 Stars
  • 427 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 22 % Grown

The README.md

Yii 2 Slack Component

Post a message to a Slack Channel. Pedefined functions to enable coloring., (*1)

Setup

Add the indielab/yii2-slack package to your composer.json, (*2)

composer require indielab/yii2-slack

Add the component to your config in the components section:, (*3)

'components' => [
    // ...
    'slack' => [
        'class' => 'Indielab\Slack\Client',
        'token' => 'xoxp-1234567891-1234567891-1234567891',
        'channel' => 'indielab',
        'username' => 'Slack Bot',
    ]
]

Using in your Application:, (*4)

Yii::$app->slack->message('Just a Message')->send();

Send colorized Messages:, (*5)

Yii::$app->slack->danger('Very dangerous!')->send();
  • danger
  • warning
  • success

The Versions

09/08 2017

dev-master

9999999-dev https://github.com/indielab/yii2-slack

Yii Post Message to Slack Channel

  Sources   Download

The Requires

 

The Development Requires

api php slack

20/04 2017

1.0.0

1.0.0.0 https://github.com/indielab/yii2-slack

Yii Post Message to Slack Channel

  Sources   Download

The Requires

 

The Development Requires

api php slack