PHPackages                             liagkos/diasrf - 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. liagkos/diasrf

ActiveLibrary

liagkos/diasrf
==============

Generate RI18 compatible payment codes for DIAS

v1.0.2(4y ago)491MITPHP

Since Feb 27Pushed 4y ago3 watchersCompare

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

READMEChangelogDependenciesVersions (4)Used By (0)

Create RI18 compatible payment codes for DIAS
=============================================

[](#create-ri18-compatible-payment-codes-for-dias)

- Written for PHP &gt;= 7
- Based on DCT Creditor specs v1.2

Why did I write this
--------------------

[](#why-did-i-write-this)

I wanted to create RF for personal use, and since it appeared to be very easy, I wanted to share it with the rest of the community and use it as a payment gateway for WHMCS.

Installation
------------

[](#installation)

Install the package using Composer:

```
composer require liagkos/diasrf

```

Usage
-----

[](#usage)

- Create payment code

```
require 'vendor/autoload.php';

use Liagkos\Banks\Dias\RF;

$merchantId        = '1234'; // leading '9' is ignored
$paymentIdentifier = '123456789012345';

$RF = RF::create($merchantId, $paymentIdentifier);
```

- Create payment code with value validation *(not supported by all banks)*

```
require 'vendor/autoload.php';

use Liagkos\Banks\Dias\RF;

$merchantId        = '1234';
$paymentIdentifier = '123456789012345';
$value             = 15.22;

$RF = RF::create($merchantId, $paymentIdentifier, $value);
```

- Create payment code without value validation as fixed payment order

```
require 'vendor/autoload.php';

use Liagkos\Banks\Dias\RF;

$merchantId        = '1234';
$paymentIdentifier = '123456789012345';

$RF = RF::create($merchantId, $paymentIdentifier, 0, 'fixed');
```

- Validate payment code

```
require 'vendor/autoload.php';

use Liagkos\Banks\Dias\RF;

$paymentCode = 'RF8912349123456789012345';

$isValid = RF::check($merchantId, $paymentIdentifier);
```

Finally
-------

[](#finally)

I'm **NOT** related with DIAS or other banks and *DIAS* word is their respective trademark. I have no responsibilty of any misuse of the program or any damage or loss you may have, including financial damage or loss. Use it are your own risk.

###  Health Score

24

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~7 days

Total

3

Last Release

1468d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/776867bfd235180dafae48da8ed47d5dae8809fdd4279e2437ac844698981954?d=identicon)[liagkos](/maintainers/liagkos)

---

Top Contributors

[![liagkos](https://avatars.githubusercontent.com/u/15843357?v=4)](https://github.com/liagkos "liagkos (4 commits)")

---

Tags

diasgreecepayment

### Embed Badge

![Health badge](/badges/liagkos-diasrf/health.svg)

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

PHPackages © 2026

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