library simple-slack
PHP class to help with Slack Incoming WebHooks
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
Simple Slack
PHP class to help with Slack Incoming WebHooks, (*1)
Requirements
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());
}
dev-master
9999999-dev
PHP class to help with Slack Incoming WebHooks
Sources
Download
MIT
The Requires
by
Gabriel Guerreiro