- Slack invite automation
Laravel5 : laravel-slack-invite-automation
"guzzlehttp/guzzle": "^6.2"
#composer.json
{
"require": {
"richellin/php-chat-invite-automation": "0.0.*"
}
}
#install
composer install
<?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();
}./vendor/bin/phpunit --tap testsMIT