petehouston/slack-simple-webhooks

Simple Slack Webhook API.

Maintainers

Package info

github.com/petehouston/slack-simple-webhooks

pkg:composer/petehouston/slack-simple-webhooks

Statistics

Installs: 4

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 0

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

This package is auto-updated.

Last update: 2026-03-01 00:25:53 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.