gaguerreiro/simple-slack
Composer 安装命令:
composer require gaguerreiro/simple-slack
包简介
PHP class to help with Slack Incoming WebHooks
README 文档
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()); }
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-05-07