Download the PHP package talvbansal/laravel-ms-teams-notification-channel without Composer
On this page you can find all versions of the php package talvbansal/laravel-ms-teams-notification-channel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download talvbansal/laravel-ms-teams-notification-channel
More information about talvbansal/laravel-ms-teams-notification-channel
Files in talvbansal/laravel-ms-teams-notification-channel
Package laravel-ms-teams-notification-channel
Short Description Basic MS Teams Notifications Channel for Laravel
License MIT
Homepage https://github.com/talvbansal/laravel-ms-teams-notification-channel
Informations about the package laravel-ms-teams-notification-channel
MS Teams Notifications Channel for Laravel
This package makes it easy to send notifications using MS Teams with Laravel 5.5+ - 8.0.
Contents
- Installation
- Setting up the Connector
- Usage
- Available Message methods
- Changelog
- Testing
- Security
- Contributing
- Credits
- License
Installation
You can install the package via composer:
Setting up the Connector
Please refer to this article for setting up and adding a webhook connector to your MS Team's channel.
Then, configure your webhook url:
You can change this to be whatever you like so if you have multiple teams you want to send notifications to you could do the following:
As long as you remember to route the notifications to the correct team.
Usage
You can now use the channel in your via() method inside the Notification class.
Notifications
Routing the message
You can either send the notification by providing with the webhook url to the recipient to the to($url) method like shown in the above example or add a routeNotificationForMsTeams() method in your notifiable model:
Available Message methods
to($webhookUrl): (string)
Recipient's chat id.title(''): (string)
Notification title, does not support markdown.content(''): (string)
Notification message, supports markdown..button($text, $url): (string)
Adds an inline "Call to Action" button. You can add as many as you want.image($url): (string)
Adds an inline image from the given url. You can add as many as you want.code($code): (string)
Adds a code fragment to the message. You can add as many as you want.type($type): (string)
Change the accent of the card sent. You can choose between 'info', 'warning', 'error', 'success'
More examples and information about this package can be found here.
Throttling notifications
If you find you're receiving too many of a given notification you can use this package to help limit the number of notifications you get during a period where something has gone wrong.
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
Security
If you discover any security related issues, please email :author_email instead of using the issue tracker.
Contributing
Please see CONTRIBUTING for details.
Credits
- Talv Bansal
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Please see this repo for instructions on how to submit a channel proposal.
All versions of laravel-ms-teams-notification-channel with dependencies
guzzlehttp/guzzle Version ^7.0
illuminate/notifications Version ^6.0 || ^7.0 || ^8.0 || ^9.0
illuminate/support Version ^6.0 || ^7.0 || ^8.0 || ^9.0