biteit/simple-slack-messenger

Send simple messages to your Slack

0.2.1 2019-05-23 09:20 UTC

This package is auto-updated.

Last update: 2020-01-23 10:48:16 UTC


README

Send simple messages to Slack through Webhook API

Installation:

  1. Create a webhook integration for your Slack here: https://my.slack.com/services/new/incoming-webhook/
  2. $$$
$messenger = new \BiteIT\SimpleSlackMessenger('YOUR_WEBHOOK_URL');
$msg = new \BiteIT\SimpleSlackMessage();
$msg->setText('Hello')
    ->setName('MyBotName')
    ->setIconEmoji('hankey');

$messenger->sendSimpleMessage($msg);