Skip to content

marko-php/marko-webhook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

marko/webhook

Send and receive webhooks with HMAC-SHA256 signature verification, automatic retry with exponential backoff, and delivery attempt tracking.

Installation

composer require marko/webhook

Quick Example

use 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);

Documentation

Full usage, API reference, and examples: marko/webhook

About

[READ-ONLY] Webhook sending package for Marko Framework. Issues and PRs at https://github.com/marko-php/marko

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages