greenter/ubl-validator

OASIS Universal Business Language Schema Validator UBL v2.0, UBL v2.1

v2.1.0 2019-02-10 20:58 UTC

README

Github Actions Coverage Status Codacy Badge
OASIS Universal Business Language Schema Validator

Install

Via Composer from packagist.org.

composer require greenter/ubl-validator

Example

use Greenter\Ubl\UblValidator;

$xml = file_get_contents('20000000001-01-F001-1.xml');

$validator = new UblValidator();

if ($validator->isValid($xml)) {
  echo 'Success!!!';
} else {
  echo $validator->getError();
}