doublesecretagency / craft-notifier
First-class Notifications for Craft CMS.
Package info
github.com/doublesecretagency/craft-notifier
Type:craft-plugin
pkg:composer/doublesecretagency/craft-notifier
Requires
- craftcms/cms: ^4.5.0 || ^5.0.0
- league/html-to-markdown: ^5.1
- nystudio107/craft-code-editor: ^1.0
- nystudio107/craft-twig-sandbox: ^4.0.2 || ^5.0.2
- php-mqtt/client: ^2.0
- twilio/sdk: ^7.14
Requires (Dev)
- phpunit/phpunit: ^10.0
README
Notifier plugin for Craft CMS
First-class Notifications for Craft 4 and Craft 5.
🔌️ Find it in the Craft Plugin Store!
When an [EVENT] occurs, send a [MESSAGE] to designated [RECIPIENTS].
Notifier supports a wide variety of event and message types, mix & match to build each Notification!
- Email admins about pending users.
- Send welcome email to new users.
- Post to Slack when an order is placed.
- Text customers when new products are added.
- Tweet when a new blog post goes live.
- Get an alert if a critical update is available.
- Get a daily summary of site activity.
What else can it to? See the complete documentation ➡️
How It Works
Event Types
Trigger notifications from a variety of events across native Craft elements, third-party plugins, and other data sources.
| Event Group | Trigger Types |
|---|---|
| Native Elements | Entries, Assets, Users |
| Plugin Elements | Craft Commerce, Digital Products, Solspace Calendar |
| Other Data Sources | RSS/JSON Feed, System Snapshot, Dynamic Data |
Message Types
Send to a broad selection of message types, regardless of how the message was triggered.
| Category | Message Types |
|---|---|
| Native Pings | Email, Announcement, Flash Message |
| Push Notifications | SMS, Pushover, ntfy |
| Chat Platforms | Slack, Discord |
| Social Media | Facebook, Instagram, X (Twitter), Bluesky, Mastodon, LinkedIn |
| Internet of Things | MQTT |
Recipient Types
Target different recipients based on the selected message type. Specify one or more Craft users when relevant.
Highly Flexible Notifications System
Notifier is an extremely flexible tool for delivering the right message at the right moment.
Write Messages in Twig
Compose every message with normal Twig, including a set of special variables available at runtime.
Personalize the message
Hi {{ recipient.firstName }}, the entry "{{ entry.title }}" was just updated.
Show what changed
The title changed from "{{ original.title }}" to "{{ entry.title }}".
Include additional information
Add custom fields (e.g. "Additional Resources") and include them in your message.
<p>Welcome {{ recipient.firstName }},</p> <p>Here are some links to get you started...</p> <ul> {% for resource in notification.additionalResources.all() %} <li> <a href="{{ resource.url }}">{{ resource.title }}</a> </li> {% endfor %} </ul>
How to Install the Plugin
To get started, see the complete installation instructions ➡️
Further Reading
If you haven't already, flip through the complete plugin documentation.
And if you have any remaining questions, feel free to reach out to us.
On behalf of Double Secret Agency, thanks for checking out our plugin! 🍺