bereznii / php-teams-connector
This package is used to easily interact with Microsoft Teams Connector API via Incoming Webhook, allowing to create notification channel
Requires
- php: ~7.2
- ext-curl: *
- ext-json: *
- symfony/var-dumper: ^5.1
Requires (Dev)
- phpunit/phpunit: >=8.0
- squizlabs/php_codesniffer: ^3.0
This package is auto-updated.
Last update: 2024-11-04 21:21:08 UTC
README
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.