Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 527 Bytes

README.md

File metadata and controls

23 lines (14 loc) · 527 Bytes

Slack Incoming WebHooks Messages

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