xidmonx/cfdi

Librería para generar Comprobantes Fiscales para la versión 3.3

v1.0 2021-08-20 01:39 UTC

This package is auto-updated.

Last update: 2024-06-21 05:34:09 UTC


README

XML_CFDI 3.3

CFDI

use xIDMONx\CFDI\CFDI;

$cer = file_get_contents('XAX010101000.cer.pem');
$key = file_get_contents('XAX010101000.key.pem');

$cfdi = new CFDI([
    'Serie'             => 'A',
    'Folio'             => 'A0101',
    'Fecha'             => '2020-06-23T09:23:32',
    'FormaPago'         => '01',
    'NoCertificado'     => '00000000000000000000',
    'CondicionesDePago' => '',
    'SubTotal'          => '',
    'Descuento'         => '0.00',
    'Moneda'            => 'MXN',
    'TipoCambio'        => '1.0',
    'Total'             => '',
    'TipoDeComprobante' => 'I',
    'MetodoPago'        => 'PUE',
    'LugarExpedicion'   => '64000',
], $cer, $key);