Download the PHP package ayodvr/laravel-webhook-manager without Composer
On this page you can find all versions of the php package ayodvr/laravel-webhook-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-webhook-manager
Laravel Webhook Manager
A reusable Laravel package for receiving, processing, and managing incoming webhooks reliably. It handles webhooks from multiple providers, prevents duplicates, and ensures high reliability for critical backend systems.
Features
- Signature Verification: Ensures incoming requests are authentic using HMAC-SHA256.
- Automatic Duplicate Prevention: Uses unique provider IDs (Stripe ID, GitHub Delivery ID, etc.) or signatures to prevent duplicate processing.
- Reliable Processing: Queue-based asynchronous processing with automatic status tracking and retries.
- Event Dispatching: Fires Laravel events (
WebhookReceived) for easy integration. - Configurable: Customizable route prefix, retry intervals, queue names, and signature secrets.
- Multiple Providers: Built-in support for Paystack, Stripe, PayPal, GitHub, and more.
- Interactive Demo: Includes a built-in dashboard to simulate and monitor webhooks.
Installation
Requirements
- PHP: ^8.2
- Laravel: ^10.0 || ^11.0 || ^12.0
Via Composer
Publish Configuration
Publish the configuration file:
Publish Migration
Run the migration to create the webhook events table:
Set your webhook signature secret in your .env file:
Interactive Demo
The package comes with a built-in demo dashboard to help you test and visualize the webhook flow.
-
Start the server:
- Access the dashboard:
Navigate to
http://127.0.0.1:8000/demoin your browser. - Simulate Webhooks: Click the "Simulate Paystack Payment" button to trigger a mock signed webhook and watch it process in real-time.
Usage
Receiving Webhooks
Webhooks are automatically handled at the /webhooks/{provider} route (configurable via route_prefix). For example:
- Paystack:
POST /webhooks/paystack - Stripe:
POST /webhooks/stripe - PayPal:
POST /webhooks/paypal
Listening to Webhooks
Listen to the WebhookReceived event in your EventServiceProvider or using a Listener:
Configuration Options
Edit config/webhook-manager.php to customize behavior:
Testing
Run the test suite:
Contributing
Contributions are welcome! Please see the contributing guide for more details.
License
This package is open-sourced software licensed under the MIT license.
All versions of laravel-webhook-manager with dependencies
laravel/framework Version ^10.0 || ^11.0 || ^12.0
laravel/tinker Version ^2.10.1