gaguerreiro / simple-slack
PHP class to help with Slack Incoming WebHooks
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
pkg:composer/gaguerreiro/simple-slack
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2025-12-21 00:59:19 UTC
README
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()); }