artemeon / dpm-xl-validator
DPM XL validator
Installs: 2 040
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
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); }