gnello/laravel-mattermost-driver
A Laravel notification driver for Mattermost that lets your app send notifications to Mattermost channels through incoming webhooks. Configure a webhook URL and use a simple channel class to deliver alerts, updates, and team messages.
php-mattermost-driver. That makes the honest comparison not "buy vs. build a Mattermost SDK" but "adopt a small community wrapper vs. spend ~half a day wiring Laravel's HTTP client to Mattermost incoming webhooks." Either way, integration cost is negligible and should not be a gating input to any roadmap decision.Consider it when:
config/mattermost.php, DI-friendly client) rather than instantiating the underlying driver by hand in every service class.Look elsewhere — or build it yourself — when:
php-mattermost-driver itself; if it is missing, go direct to the Mattermost REST API.Http client with retry() gives you all of this with zero third-party code.Notification + a custom channel class is ~60 lines and removes the dependency entirely. Prefer that for anything long-lived.Recommended posture if adopted: wrap it behind your own ChatNotifier interface so the package is an implementation detail, pin the version, and keep the swap to Laravel's native Http client pre-scoped.
For executives: This is a small, free, open-source connector that lets our Laravel applications post operational messages — alerts, deploy notices, system warnings — into Mattermost, the self-hosted Slack alternative we already run. It supports two decisions worth money: keeping sensitive operational data on our own infrastructure instead of a third-party SaaS, and avoiding per-seat chat licensing as headcount grows. The integration effort is measured in hours, not sprints, so it is a cheap way to prove out the self-hosted collaboration path before we commit to it more broadly. The trade-off to be aware of: it is a community package with a single maintainer and roughly a dozen-and-a-half users, so we should treat it as a starting point rather than a long-term platform dependency — plan a small hardening task to own that code path ourselves.
For engineering: Adopt it as a convenience binding, not as architecture. It gives us a config-driven service provider and facade over php-mattermost-driver, which saves us from hand-rolling client construction and lets us inject a mockable interface in tests. Two constraints: keep every call behind a first-party ChatNotifier abstraction so replacing it with Laravel's Http client plus Mattermost webhooks is a contained change, and do not route page-worthy alerts through it until we have added queueing, retry, and failure alerting on our side. Confirm Laravel/PHP version support against our matrix before merging; if it lags, the native Notification channel is roughly sixty lines and removes the dependency outright — that is a legitimate outcome, not a failure.
How can I help you explore Laravel packages today?