Facturae PHP: Generate XML electronic bills paid in Spain

Recommend this page to a friend!
  Info   View files View files (68)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2021-01-04 (1 month ago) RSS 2.0 feedNot enough user ratingsTotal: 135 All time: 9,067 This week: 241Up
Version License PHP version Categories
facturae-php 1.2.5Custom (specified...5XML, PHP 5, E-Commerce
Description Author
This package is specific mainly for applications used in Spain Spain .

This package can generate XML electronic bills paid in Spain.

It takes details about products or services paid in Spain and generates XML signed using a digital certificate for the electronic bill.

In Spanish:

Genera y firma facturas electrónicas en formato XML sin necesidad de ninguna librería adicional

Innovation Award
PHP Programming Innovation award nominee
September 2017
Number 6
Customer bills can be stored in files, so they can be exported by companies that emit bills for their customers, so they can imported on other systems that can process those bills.

This package generate electronic bills on XML format for use in Spain. They use digital certificates to sign the XML data, thus preventing tampering.

Manuel Lemos
Picture of José Miguel Moreno
  Performance   Level  
Innovation award
Innovation award
Nominee: 1x

Details

Facturae-PHP

Travis Codacy Coverage Última versión estable Licencia Documentación

Facturae-PHP es un paquete escrito puramente en PHP que permite generar facturas electrónicas siguiendo el formato estructurado Facturae, añadirlas firma electrónica XAdES y sellado de tiempo, e incluso enviarlas a FACe o FACeB2B sin necesidad de ninguna librería o clase adicional.

En apenas 25 líneas de código y con un tiempo de ejecución inferior a 0,4 µs es posible generar, firmar y exportar una factura electrónica totalmente válida:

$fac = new Facturae();
$fac->setNumber('FAC201804', '123');
$fac->setIssueDate('2018-04-01');

$fac->setSeller(new FacturaeParty([
  "taxNumber" => "A00000000",
  "name"      => "Perico de los Palotes S.A.",
  "address"   => "C/ Falsa, 123",
  "postCode"  => "12345",
  "town"      => "Madrid",
  "province"  => "Madrid"
]));
$fac->setBuyer(new FacturaeParty([
  "isLegalEntity" => false,
  "taxNumber"     => "00000000A",
  "name"          => "Antonio",
  "firstSurname"  => "García",
  "lastSurname"   => "Pérez",
  "address"       => "Avda. Mayor, 7",
  "postCode"      => "54321",
  "town"          => "Madrid",
  "province"      => "Madrid"
]));

$fac->addItem("Lámpara de pie", 20.14, 3, Facturae::TAX_IVA, 21);

$fac->sign("certificado.pfx", null, "passphrase");
$fac->export("mi-factura.xsig");

Requisitos

- PHP 5.6 o superior - OpenSSL (solo para firmar facturas) - cURL (solo para timestamping y FACe / FACeB2B) - libXML (solo para FACe y FACeB2B)

Características

- Generación de facturas 100% conformes con la Ley 25/2013 del 27 de diciembre - Exportación según las versiones de formato 3.2, 3.2.1 y 3.2.2 de Facturae - Firmado de acuerdo a la política de firma de Facturae 3.1 basada en XAdES - Sellado de tiempo según el RFC3161 - Envío automatizado de facturas a FACe y FACeB2B ?

Licencia

Facturae-PHP se encuentra bajo licencia MIT. Eso implica que puedes utilizar este paquete en cualquier proyecto (incluso con fines comerciales), siempre y cuando hagas referencia al uso y autoría de la misma.

  Files folder image Files  
File Role Description
Files folder imagedoc (1 file, 8 directories)
Files folder imagesrc (5 files, 4 directories)
Files folder imagetests (8 files, 2 directories)
Accessible without login Plain text file .editorconfig Data Auxiliary data
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file CONTRIBUTING.md Data Auxiliary data
Accessible without login Plain text file Gemfile Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file _config.yml Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:135
This week:0
All time:9,067
This week:241Up
User Comments (3)
Excelent work.
3 years ago (David Pascual)
77%StarStarStarStar
Excelent work.
3 years ago (David Pascual)
77%StarStarStarStar
Excelent work.
3 years ago (David Pascual)
77%StarStarStarStar
 

For more information send a message to info at phpclasses dot org.