PHPackages                             donr/donr-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. donr/donr-php

ActiveLibrary[Payment Processing](/categories/payments)

donr/donr-php
=============

Donr PHP Library

07PHP

Since Nov 29Pushed 3y ago1 watchersCompare

[ Source](https://github.com/donr-ltd/donr-php)[ Packagist](https://packagist.org/packages/donr/donr-php)[ RSS](/packages/donr-donr-php/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Donr Webhook
============

[](#donr-webhook)

The Donr PHP library provides convenient access to the Donr API.

At present the library only supports the processing of webhooks requests.

Requirements
------------

[](#requirements)

PHP 5.4.0 and later.

Composer
--------

[](#composer)

You can install the bindings via [Composer](http://getcomposer.org/). Run the following command:

```
composer require donr/donr-php
```

Setup Integration
-----------------

[](#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
-------------

[](#example-usage)

```
$webhookSecret = '{webhook-secret}';

$payload = @file_get_contents('php://input');

$authorisation = $_SERVER['HTTP_AUTHORIZATION'];

$payload = Donr\Webhook::constructEvent($payload, $authorisation, $webhookSecret);
```

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1810577?v=4)[donr](/maintainers/donr)[@donr](https://github.com/donr)

---

Top Contributors

[![donr-ltd](https://avatars.githubusercontent.com/u/117915423?v=4)](https://github.com/donr-ltd "donr-ltd (7 commits)")

### Embed Badge

![Health badge](/badges/donr-donr-php/health.svg)

```
[![Health](https://phpackages.com/badges/donr-donr-php/health.svg)](https://phpackages.com/packages/donr-donr-php)
```

###  Alternatives

[msilabs/bkash

bKash Payment Gateway API for Laravel Framework.

181.1k](/packages/msilabs-bkash)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
