talentrydev/slack
最新稳定版本:3.0.0
Composer 安装命令:
composer require talentrydev/slack
包简介
PHP library for interacting with slack
README 文档
README
This is a thin library for interacting with Slack. Currently, it supports sending messages and uploading files.
Installing
- Run:
composer require talentrydev/slack
Usage example
$apiToken = ''; //generate the token in slack
$guzzleClient = new \GuzzleHttp\Client();
$slack = new \Talentry\Slack\SlackClient($apiToken, $guzzleClient);
$channel = $slack->getChannel('general');
if ($slackChannel !== null) {
$slack->sendPlainTextMessage('Hello world!', $slackChannel);
}
Development
- Install dependencies:
make deps - Run tests:
make test
统计信息
- 总下载量: 3.33k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2022-11-23