scrolltotop

new Get your brand recommended by ChatGPT, Perplexity & AI search engines. Discover GEO.

new We help companies keep track of engineering health with monthly reports. Start your review today.

Laravel Request Forwarder

Fan out webhooks to multiple destinations with zero effort.

Home Company Open Source Laravel Request Forwarder
The Problem

One Webhook URL Is Never Enough

Most webhook providers limit you to a single callback URL. When your system needs to notify multiple services like Slack, analytics dashboards, and partner APIs, you end up building fragile relay logic from scratch, duplicating retry handling, and praying nothing silently fails.

The result is brittle, hard-to-debug code scattered across your application. When a delivery fails, you don't know about it. When you add a new target, you're rewriting boilerplate. And your response time suffers because everything runs synchronously.

The Solution

Laravel Request Forwarder sits behind your webhook URL and fans out every incoming request to as many targets as you need. It processes everything through Laravel's queue system, so your response time stays fast while deliveries happen reliably in the background.

Add a middleware to your route. Define your targets in a config file. That's it. The package handles async dispatch, automatic retries with exponential backoff, per-target timeouts, and event hooks you can use for dashboards, alerts, or audit logs.

GitHub stars License PHP version Latest version

Key Features

  • Async by default. Requests dispatched to a queue job so your endpoint responds instantly.
  • Multi-target fan-out. Forward a single request to many endpoints in parallel.
  • Custom providers. Implement a single interface for any delivery format. Discord provider included.
  • Automatic retries. Configurable retry count with exponential backoff and failure logging.
  • Built-in events. WebhookSent and WebhookFailed for dashboards and alerts.
  • Per-target config. Custom headers, timeouts, and HTTP methods for each target.

Requirements

  • PHP 8.2+
  • Laravel 11.x or 12.x

Installation

composer require moneo/laravel-request-forwarder
View on GitHub
Partnership is at the core of what we do.

Unsure where to start?
Let’s figure it out together 👋

Contact Us