raph6 / slack-php

php easy slack alerts

Repository from Github https://github.comraph6/slack-phpRepository from Github https://github.comraph6/slack-php

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');

About

php easy slack alerts


Languages

Language:PHP 100.0%