bereznii/php-teams-connector

This package is used to easily interact with Microsoft Teams Connector API via Incoming Webhook, allowing to create notification channel

v1.0.0 2020-08-04 11:18 UTC

This package is auto-updated.

Last update: 2024-06-04 20:16:23 UTC


README

Latest Version on Packagist Latest Unstable Version License Total Downloads

The PHP package to easily interact with Microsoft Teams Connector API via Incoming Webhook. The goal is to provide user with ability to easily create his own message card and send them to desired channel.

Install

Via Composer

$ composer require bereznii/php-teams-connector

Usage

$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();

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please email bereznii.d@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.