Send and receive webhooks with HMAC-SHA256 signature verification, automatic retry with exponential backoff, and delivery attempt tracking.
composer require marko/webhookuse Marko\Webhook\Sending\WebhookDispatcher;
use Marko\Webhook\Value\WebhookPayload;
$payload = new WebhookPayload(
url: 'https://example.com/webhooks',
event: 'order.created',
data: ['order_id' => 42, 'total' => '99.99'],
secret: 'your-shared-secret',
);
$response = $webhookDispatcher->dispatch($payload);Full usage, API reference, and examples: marko/webhook