Skip to content

feat: add WebhookProcessor for framework-agnostic webhook handling#9

Merged
sandervanhooft merged 1 commit intomainfrom
feature/webhook-processor
Feb 27, 2026
Merged

feat: add WebhookProcessor for framework-agnostic webhook handling#9
sandervanhooft merged 1 commit intomainfrom
feature/webhook-processor

Conversation

@sandervanhooft
Copy link
Copy Markdown
Member

Closes #7

Adds WebhookProcessor that orchestrates the full webhook flow: verify → parse → store → dispatch.

New files:

  • src/Webhooks/WebhookProcessor.php — orchestrator class
  • src/Contracts/EventDispatcherInterface.php — framework-agnostic event dispatcher contract
  • tests/Webhooks/WebhookProcessorTest.php — 5 tests covering happy path, invalid/missing signature, unknown events, testmode

How it works:
Framework controllers become trivial — just call $processor->handle($payload, $signature). All webhook logic stays in the portable fluent package.

Tests: 72 pass (155 assertions)

@sandervanhooft sandervanhooft merged commit 7489271 into main Feb 27, 2026
3 checks passed
@sandervanhooft sandervanhooft deleted the feature/webhook-processor branch February 27, 2026 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add WebhookProcessor: framework-agnostic webhook handling orchestrator

1 participant