Switchboard for Craft CMS

Switchboard is a Craft 6 plugin. Craft 6 is still in beta, and so is Switchboard (6.0.0-beta.1) — try it on staging first and use caution on production sites.

Craft 6 · Beta — use caution on production

Tell the right people, the right way

Switchboard turns Craft 6 events into Laravel notifications. When an entry goes live, a user signs up, an asset lands or a queued job dies, your rules decide who hears about it and how — the bell, email, Slack, Discord, Teams, a webhook or a text — and never tell anyone about content they can't see.

Switchboard

A bell for your front end, in Twig or Blade

Bell notifications land in Craft 6's own control panel bell, and in yours: the signed-in user's Switchboard notifications, a JSON feed for polling, and a CSRF-protected “mark as read”.

twig
{# Twig #}
<span class="badge">{{ switchboard.unreadCount() }}</span>
{% for n in switchboard.notifications(10) %}
  <a href="{{ n.url }}" class="{{ n.read ? '' : 'unread' }}">{{ n.title }}</a>
{% endfor %}

{{-- Blade --}}
@foreach ($switchboard->notifications(10) as $n)
  <a href="{{ $n['url'] }}">{{ $n['title'] }}</a>
@endforeach

// PHP: fire your own events
app(Switchboard::class)->fire('order-shipped', $order, ['tracking' => $code]);

Features

Rules in the control panel, Laravel notifications underneath, permissions everywhere.

Rules you build in the CP

Pick a trigger — entry published (scheduled posts included), updated or deleted, user created or activated, asset uploaded, queued job failed, or your own custom event — then sites, sections, conditions and who should hear about it.

Every channel Laravel has

The Craft 6 CP bell, email and broadcasting for users; Slack, Discord, Microsoft Teams, signed JSON webhooks and SMS for everything else. Any laravel-notification-channels package can be added with one event listener.

Nobody hears about what they can't see

Each recipient is checked with Craft's own permissions and site access before anything is rendered. Fields behind a user condition, related elements they can't view and other people's email addresses stay out of their message.

  • Suspended and pending users are skipped — and the log says why
  • Webhooks and Slack get public information only

In each person's language

Messages render in the recipient's preferred language, else the site's — Switchboard's defaults and your own |t site translations alike. Write rule text in sandboxed Twig, or point admins' rules at a Twig or Blade template.

Webhooks that can't be turned inward

Public HTTPS only, every resolved address checked and pinned against DNS rebinding, no redirects, short timeouts, HMAC-signed bodies. Destinations are encrypted, can live in environment variables, and never sit in your queue.

A delivery log you can trust

Every delivery is a queued, retried Laravel notification with its own row: sent, failed or skipped, and why. Failures show as a badge in the sidebar; send a test from any rule.

Frequently Asked Questions

The questions worth answering before you install it.

Try it on staging today

Switchboard is free. It's a Craft 6 beta plugin on a beta CMS — start on a development or staging site and use caution on production.

More plugins

Pairs well with Switchboard