Download the PHP package coysh-digital/craft-webhook-notifier without Composer

On this page you can find all versions of the php package coysh-digital/craft-webhook-notifier. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package craft-webhook-notifier

Webhook Notifier for Craft CMS

Webhook Notifier sends a webhook whenever something happens on your Craft site, using rules you set up in the control panel. It started life as a Microsoft Teams notifier - Microsoft retired the old Incoming Webhook connectors in May 2026, and the replacement (Power Automate Workflows) needs its Adaptive Cards wrapped in a particular envelope, which this plugin handles for you. It has since grown into a general webhook tool: it can post to any webhook - Zapier, Make, Slack, your own endpoint - with whatever payload you define.

So there are two halves to it: a delivery side (Teams Adaptive Cards, or a raw payload of your choosing) and a trigger side (built-in sources, or any Craft/Yii event you name).

What it does

Requirements

Installation

Instant, event-driven webhooks

The Custom event source is the general-purpose trigger, and it works much like Craft's first-party Webhook plugin: you give a rule a Sender Class (for example craft\elements\Entry) and an Event Name (for example afterSave), and the moment that event fires, the rule runs. There's no polling and no cron - it's immediate.

When the event fires, the event object is handed to your payload as event, so you can reference anything on it. A raw payload for a Zapier/Make webhook might look like:

This makes it straightforward to forward Craft events to any automation tool, not just Teams. Pick the Raw payload card mode for these, since you usually don't want a Teams Adaptive Card wrapper around a generic webhook body.

Sending to Microsoft Teams

Teams is still a first-class target, with proper Adaptive Card support.

  1. In Teams, open the channel → ⋯ → Workflows.
  2. Choose the “Post to a channel when a webhook request is received” template.
  3. Complete the wizard signed in as a member of that team (this matters - see Troubleshooting), and copy the HTTP POST URL.
  4. In Craft: Webhook Notifier → Connections → New, paste the URL (or an $ENV_VAR reference), and use Send test card to confirm it works.

Then build a rule with a Teams card in either the Structured mode (title, body, facts, a button) or the Advanced mode (full Adaptive Card JSON, with a few starter examples to copy).

The built-in sources

Source Fires when… Trigger type
Custom event Any class + event you name (e.g. craft\elements\Entry / afterSave) Instant
Entry saved An entry is created or updated (drafts/revisions skipped) Instant
User event A user registers, is activated, or changes group Instant
Integration failure A queued job fails after Craft's retries, or your code calls reportFailure() Instant
Freeform submission A Freeform form is submitted (field values included) Instant
Queue size A scheduled check finds the queue over a threshold Scheduled

The instant sources fire as the event happens. The Queue size source is polled, so it needs a cron (below). Each source lists the variables it exposes right in the rule editor.

Variables in payloads

Anything in {curly braces} is a Twig value from the triggering event, and full Twig tags work too. Some examples:

Scheduled monitor (Queue size)

The Queue size source is checked on a schedule, so add a cron entry:

Then create a rule with the Queue size source and a condition such as total is greater than 50.

Sending notifications from your own code

Troubleshooting

UnauthorizedSenderForChannelNotification (HTTP 401) in the delivery log. The Power Automate flow ran, but Teams refused the post because the flow's posting identity isn't a member of the target team or channel. Recreate the workflow from inside the channel (channel → ⋯ → Workflows) while signed in as a team member, or add the flow's connection account to the team. This is a Teams permissions issue rather than a plugin error.

Nothing arrives and nothing is logged. Check the rule is enabled, its source (and, for a Custom event, the Sender Class and Event Name) matches what happened, and its conditions pass.

Trademark notice

“Microsoft”, “Microsoft Teams”, and “Power Automate” are trademarks of the Microsoft group of companies. This plugin is an independent product and is not affiliated with, endorsed by, or sponsored by Microsoft.


All versions of craft-webhook-notifier with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
craftcms/cms Version ^5.0.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package coysh-digital/craft-webhook-notifier contains the following files

Loading the files please wait ...