artemeon / dpm-xl-validator
DPM XL validator
v0.2.0
2025-02-07 08:23 UTC
Requires
- php: >=8.1
- antlr/antlr4-php-runtime: ^0.8
Requires (Dev)
- phpunit/phpunit: ^10.0
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); }