Skip to content

guerreiro/simple-slack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Slack

PHP class to help with Slack Incoming WebHooks

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:

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());
}

About

PHP class to help with Slack Incoming WebHooks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages