greenter/validator

Greenter Validator - Facturacion Electrónica SUNAT - Perú

v2.2.0 2019-05-18 16:49 UTC

README

Travis-CI Codacy Badge
Symfony Validator for Greenter (UBL v2.0, v2.1)

Install

Using composer from packagist.org

composer require greenter/validator

Example

use Greenter\Validator\SymfonyValidator;

$invoice = createInvoice();

$validator = new SymfonyValidator();
// Para UBL 2.1
// $validator = new SymfonyValidator(null, '2.1');
$errors = $validator->validate($invoice);

var_dump($errors);