PHP code example of richellin / php-chat-invite-automation

1. Go to this page and download the library: Download richellin/php-chat-invite-automation library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

richellin / php-chat-invite-automation example snippets



chellin\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();
}