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
Requires
- php: >=7.2
Requires (Dev)
- phpunit/phpunit: ^8.5
This package is auto-updated.
Last update: 2025-04-10 21:13:59 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');