Free!
Download
Description

GitHub tag (latest SemVer) StyleCI Status License: MIT

A simple little addon for making webhooks.

Installation

Download or clone this repo and move the Hooker folder into the ~/site/addons directory of your project.

Run the update command from the root of your project to install the addon depenencies:

php please update:addons

Done!

Usage

Adding a new hook

In your project's CP navigate to Addons > Hooker.

Click the Hook + button to make a new webhook.

In the replicater entry you just made, enter the endpoint that should be triggered.

Selecting events

Under the endpoint input you see all the Statamic events that can be lissened to. Every event you select here will trigger your hook.

Hide keys

If for example you want to hide personal information these keys can be hidden from the request to your endpoint. To do this, simply add the field's key to the Hidden keys list.

Examples

Mailchimp

Lets say you want to send a newsletter each time a new product has been added to your shop or send a welcoming email each time a new user has been added.

In that case you make a hook with the Mailchimp trigger endpoint as URL and select eighter Saved > entry or Saved > User.

Each time you save an Entry or a User one of the hooks will be triggered and it will make a request to the given URL.

In order to know what happened on the receiving side, Statamic Hooker will send all the information about the event with it's request

Feature wishlist

  • The option to select a specific Collection, Entry, User etc

Important Links
Details
Released November 14, 2018
Updated 2 months ago
Version v1.2.0
Downloads 179
Requires Statamic 2

Gydo Makkinga

More by Gydo Makkinga

Similar Addons

See All
Export collection entries to CSV

Exportit

by goellner.io in Tool
Export collection entries to CSV
Subscribes a registering user or a contact form to a Mailchimp list

Mailchimp

by Erin Dalzell in Forms, Integration
Subscribes a registering user or a contact form to a Mailchimp list
Save time, rank better. Redirect management. Schema generation. On-page optimisation. $49

Aardvark SEO

by Candour in Social Media, Tool, Utility, Enhancement, Tag
Save time, rank better. Redirect management. Schema generation. On-page optimisation.