2017 © Pedro Peláez
 

library mattermost-webhook

PHP client to send messages to an incoming Mattermost webhook

image

nutama/mattermost-webhook

PHP client to send messages to an incoming Mattermost webhook

  • Sunday, May 7, 2017
  • by nutama
  • Repository
  • 1 Watchers
  • 1 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 3 Versions
  • 200 % Grown

The README.md

Mattermost incoming webhook PHP client

PHP client to send messages to a Mattermost webhook., (*1)

See https://docs.mattermost.com/developer/webhooks-incoming.html for the documentation of the incoming webhook of Mattermost., (*2)

Build Status SensioLabsInsight, (*3)

Installation / Usage

Install the latest version via composer:, (*4)

php composer.phar require nutama/mattermost-webhook

Example:, (*5)

<?php
require_once('vendor/autoload.php');

$webhook_uri        = 'http://{your-mattermost-site}/hooks/xxx-generatedkey-xxx';
$client             = new \GuzzleHttp\Client(['base_uri' => $webhook_uri]);
$mattermost_webhook = new \Nutama\MattermostWebhook\MattermostWebhook($client);
$message            = new \Nutama\MattermostWebhook\Message('message');

$mattermost_webhook->send($message);

Requirements

PHP 7.0.x or above., (*6)

License

This library is licensed under the MIT License - see the LICENSE file for details., (*7)

The Versions

07/05 2017

dev-master

9999999-dev

PHP client to send messages to an incoming Mattermost webhook

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nathan Utama

07/05 2017

1.0.1

1.0.1.0

PHP client to send messages to an incoming Mattermost webhook

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nathan Utama

04/05 2017

1.0.0

1.0.0.0

PHP client to send messages to an incoming Mattermost webhook

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nathan Utama