2017 © Pedro Peláez
 

library mattermost-webhook

Sends mattermost webhook notifications using PHP

image

carpediem/mattermost-webhook

Sends mattermost webhook notifications using PHP

  • Friday, January 19, 2018
  • by ignace-dev
  • Repository
  • 2 Watchers
  • 7 Stars
  • 57 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 30 % Grown

The README.md

Mattermost PHP Webhook

This driver for Mattermost allows you to send message for incoming webhooks., (*1)

This is a fork from ThibaudDauce/mattermost-php, (*2)

System Requirements

You need PHP >= 5.6.0 but the latest stable version of PHP is recommended., (*3)

Installation

$ composer require carpediem/mattermost-webhook

Build status

branch status minimum PHP version
master Build Status PHP 7.0
1.x Build Status PHP 5.6

Basic usage

The code below will send a notification to a mattermost compliant service., (*4)

<?php

require '/path/to/vendor/autoload.php';

use GuzzleHttp\Client as GuzzleClient;
use Carpediem\Mattermost\Webhook\Client;
use Carpediem\Mattermost\Webhook\Message;

$mattermost = new Client(new GuzzleClient());
$message = new Message('This is a *test*.');
$response = $mattermost->notify('https://your_mattermost_webhook_url', $message);

//$response is a Psr7\Http\Message\ResponseInterface.

Documentation

Full documentation can be found at carpediem.github.io., (*5)

Contributing

Contributions are welcome and will be fully credited. Please see CONTRIBUTINGfor details., (*6)

Testing

Mattermost Webhook has a PHPUnit test suite and a coding style compliance test suite using PHP CS Fixer. To run the tests, run the following command from the project folder., (*7)

bash $ composer test, (*8)

Security

If you discover any security related issues, please email dev@carpediem.fr instead of using the issue tracker., (*9)

Credits

License

The MIT License (MIT). Please see License File for more information., (*10)

The Versions

19/01 2018

1.x-dev

1.9999999.9999999.9999999-dev https://carpediem.github.io/mattermost-webhook

Sends mattermost webhook notifications using PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

psr-7 php7 webhook mattermost

19/01 2018

dev-master

9999999-dev https://carpediem.github.io/mattermost-webhook

Sends mattermost webhook notifications using PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

psr-7 php7 webhook mattermost

17/01 2018

2.2.0

2.2.0.0 https://carpediem.github.io/mattermost-webhook

Sends mattermost webhook notifications using PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

psr-7 php7 webhook mattermost

17/01 2018

1.2.0

1.2.0.0 https://carpediem.github.io/mattermost-webhook

Sends mattermost webhook notifications using PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

psr-7 php7 webhook mattermost

16/01 2018

2.1.1

2.1.1.0 https://carpediem.github.io/mattermost-webhook

Sends mattermost webhook notifications using PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

psr-7 php7 webhook mattermost

12/01 2018

1.0.0

1.0.0.0 https://github.com/carpediem/mattermost-webhook

Mattermost PHP driver to send incoming webhooks

  Sources   Download

MIT

The Requires

 

The Development Requires

psr-7 webhook php5 mattermost

12/01 2018

2.0.0

2.0.0.0 https://github.com/carpediem/mattermost-webhook

Mattermost PHP driver to send incoming webhooks

  Sources   Download

MIT

The Requires

 

The Development Requires

psr-7 php7 webhook mattermost