mcmatters/slack-api

v1.1 2019-03-13 00:21 UTC

README

Installation

composer require mcmatters/slack-api

Usage

<?php

declare(strict_types = 1);

use McMatters\SlackApi\Message;

require 'vendor/autoload.php';

Message::make('WEBHOOK_URL')
    ->from('Foo')
    ->to('#bar')
    ->icon(':robot_face:')
    ->text('Hello world')
    ->send();