Download the PHP package philiprehberger/php-webhook-relay-client without Composer
On this page you can find all versions of the php package philiprehberger/php-webhook-relay-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download philiprehberger/php-webhook-relay-client
More information about philiprehberger/php-webhook-relay-client
Files in philiprehberger/php-webhook-relay-client
Package php-webhook-relay-client
Short Description PHP SDK + HMAC verifier for the Webhook Relay API
License MIT
Homepage https://github.com/philiprehberger/php-webhook-relay-client
Informations about the package php-webhook-relay-client
philiprehberger/php-webhook-relay-client
PHP SDK + HMAC verifier for the Webhook Relay API. PHP 8.2+, zero dependencies (curl + json extensions only).
Installation
Verify an incoming webhook (receiver side)
The body must be the exact bytes received. json_encode(json_decode(...)) will reorder keys or change whitespace and break the signature.
The format matches Stripe and Svix (t=<ts>,v1=<hex> over "{ts}.{body}" with HMAC-SHA256), so the same verifier accepts signatures from any sender using that convention.
Send an event (sender side)
The client throws WebhookRelayException on 4xx/5xx with the RFC 7807 problem payload preserved:
Subscriptions, deliveries, and the rest
For endpoints the typed surface doesn't cover (manual retry, dead-letters, webhook test probe) drop down to request():
Compatible senders
Use Signer::sign() to stand up a compatible sender for testing, or to verify your verifier matches the wire format:
Pointing at a different host
Links
- API: https://api.webhook-relay.dcsuniverse.com
- Docs: https://webhook-relay.dcsuniverse.com
- OpenAPI spec: https://webhook-relay.dcsuniverse.com/openapi.yaml
- Source: https://github.com/philiprehberger/php-webhook-relay-client
License
MIT
All versions of php-webhook-relay-client with dependencies
ext-curl Version *
ext-json Version *