Recommend this page to a friend! |
Download .zip |
Info | View files (68) | Download .zip | Reputation | Support forum (1) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2021-01-04 (1 month ago) | Not enough user ratings | Total: 135 | All time: 9,067 This week: 241 |
Version | License | PHP version | Categories | |||
facturae-php 1.2.5 | Custom (specified... | 5 | XML, PHP 5, E-Commerce |
Description | Author | |
This package is specific mainly for applications used in Spain .
This package can generate XML electronic bills paid in Spain. Innovation Award |
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");
- PHP 5.6 o superior - OpenSSL (solo para firmar facturas) - cURL (solo para timestamping y FACe / FACeB2B) - libXML (solo para FACe y FACeB2B)
- 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 ?
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 |
File | Role | Description | ||
---|---|---|---|---|
doc (1 file, 8 directories) | ||||
src (5 files, 4 directories) | ||||
tests (8 files, 2 directories) | ||||
.editorconfig | Data | Auxiliary data | ||
.travis.yml | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
CONTRIBUTING.md | Data | Auxiliary data | ||
Gemfile | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
phpunit.xml | Data | Auxiliary data | ||
README.md | Doc. | Documentation | ||
_config.yml | Data | Auxiliary data |
Files | / | doc |
File | Role | Description | ||
---|---|---|---|---|
anexos (4 files) | ||||
ejemplos (5 files) | ||||
entidades (3 files) | ||||
envio-y-recepcion (3 files) | ||||
extensiones (2 files) | ||||
firma-electronica (2 files) | ||||
productos (5 files) | ||||
propiedades (7 files) | ||||
index.md | Data | Auxiliary data |
Files | / | doc | / | anexos |
File | Role | Description |
---|---|---|
anexos.md | Data | Auxiliary data |
constantes.md | Data | Auxiliary data |
otros-metodos.md | Data | Auxiliary data |
validacion.md | Data | Auxiliary data |
Files | / | doc | / | ejemplos |
File | Role | Description |
---|---|---|
ejemplos.md | Data | Auxiliary data |
envio-face.md | Data | Auxiliary data |
envio-faceb2b.md | Data | Auxiliary data |
factura-simple.md | Data | Auxiliary data |
sin-composer.md | Data | Auxiliary data |
Files | / | doc | / | entidades |
File | Role | Description |
---|---|---|
centros-administrativos.md | Data | Auxiliary data |
compradores-y-vendedores.md | Data | Auxiliary data |
entidades.md | Data | Auxiliary data |
Files | / | doc | / | envio-y-recepcion |
File | Role | Description |
---|---|---|
envio-y-recepcion.md | Data | Auxiliary data |
face.md | Data | Auxiliary data |
faceb2b.md | Data | Auxiliary data |
Files | / | doc | / | extensiones |
File | Role | Description |
---|---|---|
extensiones.md | Data | Auxiliary data |
faceb2b.md | Data | Auxiliary data |
Files | / | doc | / | firma-electronica |
File | Role | Description |
---|---|---|
firma-electronica.md | Data | Auxiliary data |
sellado-de-tiempo.md | Data | Auxiliary data |
Files | / | doc | / | productos |
File | Role | Description |
---|---|---|
campos-opcionales.md | Data | Auxiliary data |
descuentos-y-cargos.md | Data | Auxiliary data |
multiples-impuestos.md | Data | Auxiliary data |
productos.md | Data | Auxiliary data |
unidad-de-medida.md | Data | Auxiliary data |
Files | / | doc | / | propiedades |
File | Role | Description |
---|---|---|
datos-adicionales.md | Data | Auxiliary data |
datos-del-pago.md | Data | Auxiliary data |
descuentos-y-cargos.md | Data | Auxiliary data |
propiedades.md | Data | Auxiliary data |
referencias.md | Data | Auxiliary data |
textos-literales.md | Data | Auxiliary data |
version-de-facturae.md | Data | Auxiliary data |
Files | / | src |
File | Role | Description | ||
---|---|---|---|---|
Common (2 files) | ||||
Extensions (2 files) | ||||
Face (3 files) | ||||
FacturaeTraits (4 files) | ||||
Facturae.php | Class | Class source | ||
FacturaeCentre.php | Class | Class source | ||
FacturaeFile.php | Class | Class source | ||
FacturaeItem.php | Class | Class source | ||
FacturaeParty.php | Class | Class source |
Files | / | src | / | Common |
File | Role | Description |
---|---|---|
KeyPairReader.php | Class | Class source |
XmlTools.php | Class | Class source |
Files | / | src | / | Extensions |
File | Role | Description |
---|---|---|
FacturaeExtension.php | Class | Class source |
Fb2bExtension.php | Class | Class source |
Files | / | src | / | Face |
File | Role | Description |
---|---|---|
Faceb2bClient.php | Class | Class source |
FaceClient.php | Class | Class source |
SoapClient.php | Class | Class source |
Files | / | src | / | FacturaeTraits |
File | Role | Description |
---|---|---|
ExportableTrait.php | Class | Class source |
PropertiesTrait.php | Class | Class source |
SignableTrait.php | Class | Class source |
UtilsTrait.php | Class | Class source |
Files | / | tests |
File | Role | Description | ||
---|---|---|---|---|
certs (2 files) | ||||
Extensions (1 file) | ||||
AbstractTest.php | Class | Class source | ||
DecimalsTest.php | Class | Class source | ||
DiscountsTest.php | Class | Class source | ||
ExtensionsTest.php | Class | Class source | ||
InvoiceTest.php | Class | Class source | ||
MethodsTest.php | Class | Class source | ||
PerformanceTest.php | Class | Class source | ||
WebservicesTest.php | Class | Class source |
Files | / | tests | / | certs |
File | Role | Description |
---|---|---|
facturae-private.pem | Data | Auxiliary data |
facturae-public.pem | Data | Auxiliary data |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
User Comments (3) | |||||||||||
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.