2017 © Pedro Peláez
 

library slack-incoming-web-hooks

Slack Incoming WebHooks PHP vendor

image

vallbo/slack-incoming-web-hooks

Slack Incoming WebHooks PHP vendor

  • Friday, January 5, 2018
  • by vallbo
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Slack Incoming WebHooks Messages

Incoming web hooks help

Help for Slack Web Hook App: https://api.slack.com/incoming-webhooks, (*1)

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

The Versions