New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

thibaud-dauce/laravel-notifications-mattermost

Send Laravel Notifications via Mattermost
163,433 17

Larablocks Analysis

thibaud-dauce/laravel-notifications-mattermost works with Laravel 5 to 13 (latest release 1.8.0, Mar 20, 2026).

Recommendation checks

Solid choice

Solid 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
Maintainer: ThibaudDauce

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

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

670,032,257 9,703
laravel/framework

The Laravel Framework.

640,572,096 35,338
laravel/tinker

Powerful REPL for the Laravel framework.

546,909,908 7,440
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

465,816,364 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

431,187,642 4,660

Version History

Version Released PHP Laravel License
1.8.0 >=5.6.4 ^5.3|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0 MIT
1.7.0 >=5.6.4 ^5.3|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0 MIT
1.6.0 >=5.6.4 ^5.3|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0 MIT
1.5.0 >=5.6.4 ^5.3|^6.0|^7.0|^8.0|^9.0|^10.0 MIT
1.4.0 >=5.6.4 ^5.3|^6.0|^7.0|^8.0|^9.0 MIT