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. [Payment Processing](/categories/payments)
4. /
5. liagkos/diasrf

ActiveLibrary[Payment Processing](/categories/payments)

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 1mo ago

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 32% 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

1516d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15843357?v=4)[nasos](/maintainers/liagkos)[@liagkos](https://github.com/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)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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