vallbo/slack-incoming-web-hooks

Slack Incoming WebHooks PHP vendor

01.00.1 2018-01-05 14:51 UTC

This package is auto-updated.

Last update: 2024-03-23 19:12:10 UTC


README

Incoming web hooks help

Help for Slack Web Hook App: https://api.slack.com/incoming-webhooks

Usage example

use Vallbo\SlackNotification\Adapter\GuzzleConnector;
use Vallbo\SlackNotification\NotificationFactory\NotificationMessageFactory;


$factory = new NotificationMessageFactory(
    '<hook URI>'
);

$message = $factory->createNotificationMessage('TEST', 'fun');

$connector = new GuzzleConnector(new \GuzzleHttp\Client());

$connector->sendNotification($message);