advans/php-api-validador

There is no license information available for the latest version (v1.0.0) of this package.

v1.0.0 2023-06-15 20:15 UTC

This package is auto-updated.

Last update: 2024-11-15 23:10:59 UTC


README

Latest Stable Version Total Downloads

Instalación usando Composer

$ composer require advans/php-api-validador-cfdi

Ejemplo

$config = new \Advans\Api\ValidadorCFDI\Config([
    'base_url' => '*************************',
    'key' => '**********************'
]);
$service_validador_cfdi = new \Advans\Api\ValidadorCFDI\ValidadorCFDI($config);

$response = $service_validador_cfdi->validar('...xml...');
if (!$response->valido) {
    echo $response->error['message'];
}

Configuración