richellin/php-chat-invite-automation
Composer 安装命令:
composer create-project richellin/php-chat-invite-automation
包简介
slack invite automation
README 文档
README
- Slack invite automation
Example
Laravel5 : laravel-slack-invite-automation
Use
"guzzlehttp/guzzle": "^6.2"
Composer
#composer.json { "require": { "richellin/php-chat-invite-automation": "0.0.*" } } #install composer install
PHP
<?php require 'vendor/autoload.php'; use \richellin\chat\Invite; use \richellin\chat\Channel\Slack; $invite = new Invite(); $res = $invite->channel(new Slack()) ->set([ 'team_name'=> 'Your team name', 'email'=> 'Email', 'channel'=> 'Channel', 'token'=> 'xoxp-token' ]) ->send(); if ($res === FALSE) { echo $invite->errMsg(); }
Test
./vendor/bin/phpunit --tap tests
Licence
MIT
统计信息
- 总下载量: 223
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-04-26