PHP code example of ndobromirov / php-slack-inviter
1. Go to this page and download the library: Download ndobromirov/php-slack-inviter 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/ */
ndobromirov / php-slack-inviter example snippets
$team = 'my-team-name';
$token = 'my-token-value';
$handler = new \PhpSlackInviter\InviteHandler($token, $team);
try {
$handler->requestNewInvite('[email protected]');
echo 'Invitation was sent!';
}
catch (\PhpSlackInviter\Exception $e) {
echo $e->getMessage();
}
composer