Download the PHP package citation-media/wp-webhook-framework without Composer

On this page you can find all versions of the php package citation-media/wp-webhook-framework. 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 wp-webhook-framework


title: WP Webhook Framework description: Entity-level webhooks for WordPress with scheduled and immediate delivery modes, retries, and failure monitoring.

WP Webhook Framework

Quality Check Integration Tests

Entity-level webhooks for WordPress using Action Scheduler with optional immediate delivery mode. Sends POSTs for create/update/delete of posts, terms, and users. Meta changes trigger the entity update. ACF updates include field context. Features intelligent failure monitoring with email notifications, automatic blocking, and comprehensive filtering options.

Features

Quick Start

Installation

Requirements

Requirement Version
WordPress 6.7 or newer
PHP 8.1 or newer
Action Scheduler 3.7 or newer (declared as a Composer dependency)

WordPress 6.7 is a hard requirement: the dispatcher signals every delivery and configuration failure by throwing WP_Exception, which was added to core in 6.7.0. On older releases those throw sites raise an uncatchable Error: Class "WP_Exception" not found instead.

Action Scheduler comes bundled and is loaded by Service_Provider::register() — no separate plugin activation needed. If other plugins ship their own copy, Action Scheduler's version manager initialises the newest one.

:::caution Call Service_Provider::register() while your plugin file loads, not from inside plugins_loaded. Action Scheduler registers itself on plugins_loaded at priority 0, so registering later loads it too late to initialise. :::

Basic Setup

Service_Provider::register() is idempotent, so separate plugins can call it independently while sharing the same library checkout.

:::tip If you are using a prefixer make sure to exclude this library. Due the strong typings used it will break plugins :::

See Configuration for detailed configuration options.

Usage Examples

Register Built-in Webhooks

No webhooks are active by default. Register what you need via the action:

See Custom Webhooks for creating your own webhooks.

Immediate Delivery Mode

Immediate mode sends the first attempt in the current request. If it fails, retries are still queued asynchronously with exponential backoff.

Filter Payloads

See Hooks and Filters for all available hooks and filters.

Architecture Overview

Core Components

Data Flow:

Webhook Statefulness

Webhook instances are singletons and must remain stateless. Never store per-emission data as instance properties. Configuration (URL, timeout, headers) is set during init(). Payloads and dynamic data are passed directly to emit().

See Webhook Statefulness for detailed explanation and examples.

Payload Structure

Example post webhook payload:

Persisted fields (event-time):

Derived fields (when available at send time):

Failure Monitoring

See Failure Handling for configuration and customization.

Code Quality

Commands

Documentation


All versions of wp-webhook-framework with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
woocommerce/action-scheduler Version ^3.7
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 citation-media/wp-webhook-framework contains the following files

Loading the files please wait ...