fredbradley/cranleigh-slacker

A class package that is used in various plugins and scripts to connect to Slack

1.0.1 2017-12-15 10:34 UTC

This package is auto-updated.

Last update: 2024-11-19 01:00:55 UTC


README

Installation

Install this using composer:

composer require fredbradley/cranleigh-slacker

Usage

require_once 'vendor/autoload.php';
$slacker = new FredBradley\CranleighSlacker\Slacker();
$slacker->setWebhook("<SLACK WEBHOOK>")
        ->setRoom("<SLACK ROOM>")
        ->setUsername("Choose a Username");

$slacker->post("Write your post here");