PHPackages                             dhfinance/dhf-pay-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. dhfinance/dhf-pay-php

ActiveLibrary

dhfinance/dhf-pay-php
=====================

DHF Pay phpsdk

333↓100%6[1 PRs](https://github.com/DHFinance/dhf-pay-php/pulls)PHP

Since Jul 16Pushed 3y ago2 watchersCompare

[ Source](https://github.com/DHFinance/dhf-pay-php)[ Packagist](https://packagist.org/packages/dhfinance/dhf-pay-php)[ RSS](/packages/dhfinance-dhf-pay-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

dhf-pay-php
===========

[](#dhf-pay-php)

PHP SDK to integrate with DHFinance in minutes.

Getting Started
===============

[](#getting-started)

1. **Sign up** - Before you begin, you need to sign up for your payment gateway account ( as example) and retrieve your store API token (add Store - APIKey Generate) and API url ( as example).
2. **Requirements** – To run the SDK, your system will need to have PHP &gt;= 7.2, cURL and Composer installed . We highly recommend having it compiled with the cURL extension and cURL 7.16.2+ compiled with a TLS backend (e.g., NSS or OpenSSL).
3. **Install** sdk using composer

```
 "require": {
        dhfinance/dhf-pay-php": "dev-main"

    }
```

Create payment
==============

[](#create-payment)

```
$dhfPay = new DHFPay('', '');
$params = [
   "amount"=> 2500000000,
   "comment"=> "test comment"
];
$payment = $dhfPay
   ->payments()
   ->add($params);
```

Payments List
=============

[](#payments-list)

```
$dhfPay->payments()->getAll();
```

Get payments by id
==================

[](#get-payments-by-id)

```
$dhfPay->payments()->getOne($id);
```

Get transactions list
=====================

[](#get-transactions-list)

```
$dhfPay->transaction()->getAll()
```

Run tests
=========

[](#run-tests)

Install dependencies

```
composer install
```

Set variables in tests/.env file (see .env.example)

```
TEST_SERVER_API=
TEST_SERVER_TOKEN=
TEST_STORE_ID=
```

then run

```
./vendor/bin/phpunit tests/DhfInIntegrationTestCasse.php
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 Bus Factor1

Top contributor holds 59.1% 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://www.gravatar.com/avatar/96df01bd40138adb9633a7291722ed21fd8758949e285488063509af03da0bb8?d=identicon)[Ilad](/maintainers/Ilad)

---

Top Contributors

[![andarg](https://avatars.githubusercontent.com/u/5294728?v=4)](https://github.com/andarg "andarg (13 commits)")[![tqhuy2018](https://avatars.githubusercontent.com/u/87941180?v=4)](https://github.com/tqhuy2018 "tqhuy2018 (9 commits)")

---

Tags

blockchaincaspercsprpayment-gatewayphp-sdk

### Embed Badge

![Health badge](/badges/dhfinance-dhf-pay-php/health.svg)

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

PHPackages © 2026

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