PHPackages                             thundev/matrix-notification-channel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. thundev/matrix-notification-channel

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

thundev/matrix-notification-channel
===================================

Matrix notification channel for Laravel.

v2.1.0(3y ago)14.8kMITPHPPHP ^8.0

Since Nov 2Pushed 3y ago2 watchersCompare

[ Source](https://github.com/thundev/matrix-notification-channel)[ Packagist](https://packagist.org/packages/thundev/matrix-notification-channel)[ RSS](/packages/thundev-matrix-notification-channel/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (2)Versions (8)Used By (0)

Matrix notification channel for Laravel
---------------------------------------

[](#matrix-notification-channel-for-laravel)

This package adds support for Matrix notifications to Laravel applications.

### Installation

[](#installation)

You can install the package via **composer**:

```
composer require thundev/matrix-notification-channel
```

Publish the configurations:

```
php artisan vendor:publish --tag="matrix-config"
```

### Usage

[](#usage)

#### Routing Matrix notification

[](#routing-matrix-notification)

To route Matrix notifications to the proper room, define a `routeNotificationForMatrix()` method on your notifiable entity which should return the Matrix room ID to which the notification should be delivered. Make sure to invite your bot into the room first. The bot will automatically accept the invitation upon sending the very first message.

```
