Download the PHP package sebbmeyer/laravel-teams-connector without Composer
On this page you can find all versions of the php package sebbmeyer/laravel-teams-connector. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sebbmeyer/laravel-teams-connector
More information about sebbmeyer/laravel-teams-connector
Files in sebbmeyer/laravel-teams-connector
Package laravel-teams-connector
Short Description Microsoft Teams Connector for Laravel 5/6
License MIT
Informations about the package laravel-teams-connector
Laravel Microsoft Teams Connector
A Laravel 5/6 package to send notifications to Microsoft Teams by using "Incoming Webhook". This package also contains a card to send a Laravel Forge deployment notification, because Microsoft Teams notification is not supported at the moment.
If you are using Laravel 5.4 or older versions of laravel, please use the version 0.3.x of this package.
Package Installation - Composer
You can install the package via composer:
Laravel
If you are using Laravel 5.5 and up, the service provider will automatically get registered.
For older versions of Laravel (<5.5), you have to add the service provider and alias to config/app.php:
You can optionally use the facade for shorter code. Add this to your facades:
Lumen
For Lumen usage, the service provider should be registered manually by adding the following line in bootstrap/app.php
:
Configuration
For this package to work, you need to configure an "Incomming Webhook" connector in your targeted Teams channel and copy the url into a config file that you can publish like this:
... or you simple add the following to your .env
file:
Usage
How to send simple notification look at the readme of this package sebbmeyer/php-microsoft-teams-connector
Custom card - ForgeCard
You can create your own cards for every purpose you need, just extend the AbstractCard class and implement the getMessage()
function.
Custom Card
You can use the CustomCard
class and dynamically build out our card. Based on Microsoft Legacy Card
Available Methods
- addTitle
- addText
- addColor
- addActivity
- addFacts
- addFactsText
- addImage
- addImages
- addAction
Adaptive Card
To use an adaptive card see the documentation here. Better support will coming soon.
License
This Microsoft Teams connector for Laravel is open-sourced software licensed under the MIT license
All versions of laravel-teams-connector with dependencies
illuminate/support Version 5.5.x|5.6.x|5.7.x|5.8.x|6.x|7.x|8.x|9.x|10.x|^11.0|^12.0
sebbmeyer/php-microsoft-teams-connector Version 0.2.*