joho1968 / mattermostsendphp

Simple CLI utility for posting text

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mattermostsendphp

Simple CLI utility for posting text to a Mattermost Incoming Webhook, written in PHP.

Usage

mmsend mmsend [<section>|none] [test|send] [<url>|config] [<text>]

Background

Simply to start building (yet another) PHP codebase for talking to Mattermost :)

Installation

Put mmsend.php and mmsend.sample.ini somewhere, in the same place. Copy mmsend.sample.ini to mmsend.ini. Edit as needed. Set execute rights on mmsend.php (not required if you manually use PHP CLI binary), and off you go. The PHP log is set to mmsend.log, in the same directory as mmsend.php.

Oh, you need to create an Incoming Webhook in your Mattermost as well.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Simple CLI utility for posting text

License:MIT License


Languages

Language:PHP 100.0%