Search by

freyr / message-broker-webhook-http

Freyr

HTTP webhook sender for freyr/message-broker: signed parallel requests (Standard Webhooks) with Symfony HttpClient

Package info

github.com/freyr/message-broker-webhook-http

pkg:composer/freyr/message-broker-webhook-http

Statistics

Installs: 2

Dependents: 1

Suggesters: 1

Stars: 0

v0.1.0 2026-11-23 21:31 UTC

This package is auto-updated.

Last update: 2026-11-23 21:49:29 UTC


README

This package is the HTTP webhook sender of the Freyr Message Broker library, namespace Freyr\MessageBroker\Webhook\Http\.

The repository freyr/message-broker-webhook-http is a read-only copy of the folder webhook/http/ of freyr/message-broker. Development, issues and pull requests are in freyr/message-broker. A release has the tag webhook-http-v<version> in freyr/message-broker and the tag v<version> in freyr/message-broker-webhook-http.

The adapter holds HttpDeliverySender, which implements the port Webhook\DeliverySender of the core with Symfony HttpClient. It sends the deliveries of one claim in parallel as POST requests, signs each request as the Standard Webhooks specification says, follows no redirect, and refuses a destination in a private network by default.

Requirements

  • PHP 8.4 or later
  • freyr/message-broker ^0.15 (the core)
  • symfony/http-client ^8.1 and symfony/http-foundation ^8.1
  • psr/log ^3.0
  • A storage adapter for the webhook deliveries, for example freyr/message-broker-storage-postgresql

Install

composer require freyr/message-broker-webhook-http

Minimal wiring

use Freyr\MessageBroker\Webhook\Http\HttpDeliverySender;
use Freyr\MessageBroker\Webhook\Http\HttpSenderConfig;

$sender = new HttpDeliverySender(new HttpSenderConfig(), logger: $logger);
// Give $sender to Webhook\DeliveryLoop of the core.

Documents

  • HTTP sender: the request, the configuration, the results, the timeouts, the DNS allowance and its known limit, the connections
  • Signature: the webhook- headers, the secret, the verification by a receiver
  • Network rules: the private network rule, the proxy rule, the https rule, no redirects
  • Webhooks: the model, the ports and the delivery loop of the core
  • Webhook delivery storage: the PostgreSQL store of the deliveries
  • Quickstart: a webhook example with the three packages

Tests

The functional tests need a test HTTP server and PostgreSQL; see Tests.