legrisch/statamic-webhooks

A Statamic addon to register webhooks for Statamic events.

Installs: 39

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:statamic-addon

v0.5.0 2021-06-17 12:36 UTC

This package is auto-updated.

Last update: 2024-04-17 19:03:00 UTC


README

This Statamic addon provides an easy to use interface to register webhooks for certain Statamic Events. Trigger deployments or microservices with ease.

Statamic Webhooks

Features

  • Easy to use interface
  • Custom headers per webhook
  • Choose to include payload
  • Enable/disable webhooks and headers
  • Efficient concurrent execution of POST requests
  • Debounced webhooks (when using an async queue driver)
  • Ability to use a custom request body per webhook

Installation

Run composer require legrisch/statamic-webhooks

In case you want to debounce the webhooks, make sure to setup an async queue driver.

Usage

After installation, visit the control panel to add webhooks: ToolsWebhooks.

To manually trigger a webhook call it like this: $success = EventListener::triggerByWebhookName('webhook-name') If called directly, debouncing is not considered.

License

This project is licensed under the MIT License.