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: 2024-11-23 22:21:36 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);