petehouston/slack-simple-webhooks

Simple Slack Webhook API.

dev-master 2018-10-03 16:34 UTC

This package is auto-updated.

Last update: 2024-03-29 03:26:14 UTC


README

Install

$ composer require petehouston/slack-simple-webhooks

Usage

use Petehouston\Slack\SlackClient;


$config = [
    'webhookUrl' => '',
    'channel'    => '',
    'username'   => '',
    'icon_emoji' => ''
];

$slack = new SlackClient($config);

$result = $slack->send('This is a test message'); // return true or false on result

License

MIT @ 2018 by Pete Houston.