donr / donr-php
Donr PHP Library
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/donr/donr-php
Requires
- php: >=7
- illuminate/support: ^5.5|^6|^7|^8
This package is not auto-updated.
Last update: 2025-10-15 06:05:20 UTC
README
The Donr PHP library provides convenient access to the Donr API.
At present the library only supports the processing of webhooks requests.
Requirements
PHP 5.4.0 and later.
Composer
You can install the bindings via Composer. Run the following command:
composer require donr/donr-php
Setup Integration
To use a webhook the endpoint must first be registered within the Donr Dashboard. On registration a unique secret will be generated for the webhook. The secret is required by the library so that it can interact with the request.
Example usage
$webhookSecret = '{webhook-secret}'; $payload = @file_get_contents('php://input'); $authorisation = $_SERVER['HTTP_AUTHORIZATION']; $payload = Donr\Webhook::constructEvent($payload, $authorisation, $webhookSecret);