# Ejemplo: Factura básica
use PhpFacturae\Invoice;use PhpFacturae\Party;
$invoice = Invoice::create('FAC-001') ->series('A') ->date('2024-01-15') ->seller( Party::company('A00000000', 'Empresa Test S.L.') ->address('C/ Test, 1', '28001', 'Madrid', 'Madrid') ->email('admin@empresa.es') ) ->buyer( Party::person('00000000A', 'Juan', 'García', 'López') ->address('C/ Comprador, 5', '08001', 'Barcelona', 'Barcelona') ) ->line('Servicio de consultoría', price: 1000.00, vat: 21) ->transferPayment( iban: 'ES91 2100 0418 4502 0005 1332', dueDate: '2024-02-15' ) ->export('factura-001.xsig');