artemeon/dpm-xl-validator

v0.2.0 2025-02-07 08:23 UTC

This package is auto-updated.

Last update: 2025-02-07 08:25:31 UTC


README

This library contains a DPM XL validator to validate the DORA rules according to the EBA specification. It uses the ANTLR4 generated parser and lexer classes for PHP and a validator to apply those rules.

Usage

<?php

$row = [
    'c0010' => '',
    'c0020' => '',
    // ...
];

$validator = new \Artemeon\DpmXLValidator\Validator(new \Artemeon\DpmXLValidator\RuleSet\DORA());
$result = $validator->validate(\Artemeon\DpmXLValidator\Sheet::B0501, $row);

if (!$result->isValid) {
    echo implode(', ', $result->failedRules);
}