spatie/laravel-webhook-client
Receive webhooks in your Laravel app with Spatie’s webhook client. Verify signed requests, store incoming payloads, and process them asynchronously via queued jobs. Includes configurable webhook profiles and processing logic for reliable integrations.
delete_after_days).stripe-webhook, github-webhook) via the configs array in the config file.spatie/laravel-webhook-server instead).SignatureValidator interface to support your scheme.sync driver, but expect degraded performance.webhook_calls table."This package lets us securely and scalably receive webhooks from third-party services—like Stripe for payments or GitHub for code updates—without building custom infrastructure. It handles security (signature verification), reliability (queued processing), and auditability (database storage) out of the box. For example, integrating Stripe’s webhooks could take days with custom code but hours with this package. It also future-proofs us for compliance needs (e.g., replaying transactions for audits). The cost? Zero—it’s open-source and maintained by a trusted Laravel vendor."
*"This is a drop-in solution for webhook consumption in Laravel. Key benefits:
SignatureValidator), filtering (WebhookProfile), or responses (RespondsToWebhook).webhook_calls table with metadata (headers, exceptions).configs array.Tradeoffs:
Implementation:
composer require spatie/laravel-webhook-client.php artisan vendor:publish --provider="Spatie\WebhookClient\WebhookClientServiceProvider".Route::webhooks('stripe-webhook').ProcessWebhookJob to handle payloads.Example Use Case: For Stripe webhooks, we’d:
signing_secret to Stripe’s webhook secret.ProcessWebhookJob to parse Stripe events (e.g., payment_intent.succeeded).This cuts our webhook integration time by 70% while adding security and observability."*
How can I help you explore Laravel packages today?