PHP code example of artemeon / dpm-xl-validator
1. Go to this page and download the library: Download artemeon/dpm-xl-validator library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
artemeon / dpm-xl-validator example snippets
$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);
}