2017 © Pedro Peláez
 

library simple-slack

PHP class to help with Slack Incoming WebHooks

image

gaguerreiro/simple-slack

PHP class to help with Slack Incoming WebHooks

  • Friday, May 8, 2015
  • by gaguerreiro
  • Repository
  • 1 Watchers
  • 1 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Simple Slack

PHP class to help with Slack Incoming WebHooks, (*1)

Requirements

  • PHP 5.3 or greater

Installing via Composer

You can install the package using the Composer package manager. You can install it by running this command in your project root:, (*2)

composer require gaguerreiro/simple-slack:dev-master

Usage

require_once './vendor/autoload.php';

try {

    $options = array(
      'channel' => '#general',
      'username' => 'Robot'
    );

    $ss = new SimpleSlack\Client("[YOUR TEAM ENDPOINT]", $options);
    $ss->sendMessage('Message test');

} catch (SimpleSlackException $e) {
    printf($e->getCode());
    printf($e->getMessage());
}

The Versions

08/05 2015

dev-master

9999999-dev

PHP class to help with Slack Incoming WebHooks

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Gabriel Guerreiro