PHP code example of bereznii / php-teams-connector
1. Go to this page and download the library: Download bereznii/php-teams-connector 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/ */
bereznii / php-teams-connector example snippets
bash
$ composer
php
$card = new \Bereznii\TeamsConnector\Services\MessageCard();
$card->setAppName('Your App')
->setMessage('Hello World')
->setContext(__METHOD__)
->setStatus('DEBUG');
$request = new Bereznii\TeamsConnector\Services\Request($card, '<WEBHOOK_URL>');
$result = $request->send();