raph6/slack-alerts

There is no license information available for the latest version (1.0.2) of this package.

Slack Alerts

1.0.2 2022-02-10 13:49 UTC

This package is auto-updated.

Last update: 2024-09-10 20:02:25 UTC


README

composer require raph6/slack-alerts
use raph6\SlackAlerts\SlackAlerts;

// ---

$slack1 = new SlackAlerts('https://hooks.slack.com/services/xxxxxx/yyyyyyy/zzzzzz');
$slack1->setText('test');
$slack1->send();

//  ---

$slack2 = new SlackAlerts([
    'default' => 'https://hooks.slack.com/services/xxxxxx/yyyyyy/zzzzzz',
    'channel2' => 'https://hooks.slack.com/services/yyyyyy/xxxxxx/ssssss'
]);
$slack2->setText('test');
$slack2->send('channel2');