thibaud-dauce/laravel-notifications-mattermost
Larablocks Analysis
thibaud-dauce/laravel-notifications-mattermost works with Laravel 5 to 13 (latest release 1.8.0, Mar 20, 2026).
Recommendation checks
Solid choiceSolid choice: maintained and up to date, meets 2 of 4 checks; below the bar for Recommended on use.
- Works with Laravel 13, the current version
- Released in the last 12 months (Mar 20, 2026)
- 5,824 downloads a month (needs 10,000)
- 17 GitHub stars (needs 100)
State
Maintained- Last stable release: Mar 20, 2026.
- 1 release in the last 12 months.
- First released: Aug 29, 2016.
- Monthly downloads: 5,824, up 48% from six months ago.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 4, 2026.
| Install | |
|---|---|
composer require thibaud-dauce/laravel-notifications-mattermost |
|
| Latest Version: | 1.8.0 |
| PHP: | >=5.6.4 |
| Laravel: | 5 – 13 |
| License: | MIT |
| Last Updated: | Mar 20, 2026 |
| Links: | GitHub · Packagist |
Laravel Notifications for Mattermost
Installation
composer require thibaud-dauce/laravel-notifications-mattermost
Creating your webhook URL in Mattermost
Follow the official documentation https://docs.mattermost.com/developer/webhooks-incoming.html.
Usage
<?php
namespace App\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Notification;
use ThibaudDauce\Mattermost\MattermostChannel;
use ThibaudDauce\Mattermost\Message as MattermostMessage;
class TicketWasOpenedByCustomer extends Notification
{
use Queueable;
/**
* Get the notification's delivery channels.
*
* @param mixed $notifiable
* @return array
*/
public function via($notifiable)
{
return [MattermostChannel::class];
}
/**
* Get the Mattermost representation of the notification.
*
* @param mixed $notifiable
* @return \ThibaudDauce\Mattermost\Message
*/
public function toMattermost($notifiable)
{
return (new MattermostMessage)
->username('Helpdesk')
->iconUrl(url('/images/logo_only.png'))
->text("A new ticket has been opened.")
->attachment(function ($attachment) {
$attachment->authorName($notifiable->name)
->title("[Ticket #1] Title of the ticket", '/tickets/1')
->text("Message of **the ticket**"); // Markdown supported.
});
}
}
For all the possibilities with the Message and the Attachment see https://github.com/ThibaudDauce/mattermost-php.
Routing a message
…
/**
* Route notifications for the Mattermost channel.
*
* @return int
*/
public function routeNotificationForMattermost()
{
return $this->mattermost_webhook_url;
}
…
Related Packages
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Laravel Serializable Closure provides an easy and secure way to serialize closur...
Cli error handling for console/command-line PHP applications.
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 1.8.0 | >=5.6.4 | ^5.3| | MIT | |
| 1.7.0 | >=5.6.4 | ^5.3| | MIT | |
| 1.6.0 | >=5.6.4 | ^5.3| | MIT | |
| 1.5.0 | >=5.6.4 | ^5.3| | MIT | |
| 1.4.0 | >=5.6.4 | ^5.3| | MIT | |
| 1.3.0 | >=5.6.4 | ^5.3| | MIT | |
| 1.2.0 | >=5.6.4 | ^5.3| | MIT | |
| 1.1.0 | >=5.6.4 | ^5.3| | MIT | |
| 1.0.0 | >=5.6.4 | ^5.3 | MIT |