Microsoft Teams Notifications Package

The Teams Notification package for Laravel lets you send notifications to Microsoft Teams. You can send normal messages, messages with additional details, and even use this package's custom logging channel:

use Osama\LaravelTeamsNotification\TeamsNotification;

// Normal message
new TeamsNotification()->sendMessage("System Notification");

// Message with additional details
new TeamsNotification()->sendMessage("System Notification", [
    'Server' => 'Production',
    'Status' => 'Running',
    'Uptime' => '24 days'
]);


// Send a trace
try {
    // ...
} catch (\Exception $exception) {
    new TeamsNotification()
        ->bindTrace()
        ->error()
        ->sendException($exception);
}

The logging functionality will send messages to a Teams channel using a configured logging channel:

Log::channel('teams')->info('This is an info message');

Features

You can learn more about this package, get full installation instructions, and view the source code on GitHub.


The post Microsoft Teams Notifications Package appeared first on Laravel News.

Join the Laravel Newsletter to get all the latest Laravel articles like this directly in your inbox.