PHPackages                             danielgp/efactura - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. danielgp/efactura

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

danielgp/efactura
=================

eFactura scripts to produce and read XML files containing official selling details to help out business data exchange and authorities oversight

1.6.7(1mo ago)5202EPL-1.0PHPPHP ^8.4 || ^8.5CI passing

Since Feb 10Pushed 5mo ago3 watchersCompare

[ Source](https://github.com/danielgp/eFactura)[ Packagist](https://packagist.org/packages/danielgp/efactura)[ RSS](/packages/danielgp-efactura/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (14)Versions (36)Used By (0)

eFactura
========

[](#efactura)

Description
-----------

[](#description)

eFactura scripts to produce and read XML files containing official selling details to help out business data exchange and authorities oversight. Since the way different companies chose to store their business selling relevant details, this solution does not cover extraction nor writing information to such systems/documents.

Target audience
---------------

[](#target-audience)

PHP developers that serves various business to accomodate custom applications involving selling activity in Romania.

Usage
-----

[](#usage)

- add to your `composer.json` file, branch `require` following line: `"danielgp/efactura": ""` and save
- execute a composer update to fetch the library components
- add `use \danielgp\eFactura\TraitBackEndRomania;` to your custom class
- customize $this-&gt;arraySolutionCustomSettings as per your needs (see definition from [TraitBackEndRomania.php](/source/TraitBackEndRomania.php) file)
- consult [ClassElectronicInvoiceUserInterface.php](/source/ClassElectronicInvoiceUserInterface.php) file and method named `setActionToDo` refers to main features: checkAllMessages, checkSingleMessage and uploadElectronicInvoicesFromFolderToRomanianAuthority which you may take to your custom class

Terms dictionary
----------------

[](#terms-dictionary)

- ABIE - Aggregate Business Information Entity
- AdES - Advanced Electronic Signature
- ASBIE - Association Business Information Entity
- ASIC-S - Associated Signature Container (simple form). A standard container that associates a single data object with one or more detached signature(s) that apply to it. See [ASiC](http://docs.oasis-open.org/ubl/os-UBL-2.1/UBL-2.1.html#b_asic)
- BBIE - Basic Business Information Entity
- BIE - Business Information Entity
- C14N - Canonicalization
- CC - Core Component
- CPFR - Collaborative Planning, Forecasting, and Replenishment [CPFR](http://docs.oasis-open.org/ubl/os-UBL-2.1/UBL-2.1.html#cpfr)
- CV2 - Credit Card Verification Numbering System
- DSig - Digital Signature
- EDI - Electronic Data Interchange
- IEC - International Electrotechnical Commission
- ISO - International Organization for Standardization
- NDR - Naming and Design Rules
- QC - Qualified Certificate
- QS - Qualified Signature
- UBL - Universal Business Language
- UML - Unified Modeling Language
- UN/CEFACT - United Nations Centre for Trade Facilitation and Electronic Business
- UNDG - United Nations Dangerous Goods
- URI - Uniform Resource Identifier
- UUID - Universally Unique Identifier
- XAdES - Digital Signature based on [XAdES](http://docs.oasis-open.org/ubl/os-UBL-2.1/UBL-2.1.html#b_XAdES)
- XML - Extensible Markup Language
- XMLDSig - XML Digital Signature [xmldsig](http://docs.oasis-open.org/ubl/os-UBL-2.1/UBL-2.1.html#b_xmldsig)
- XPath - The XML Path Language
- XSD - W3C XML Schema Language [XSD1](http://docs.oasis-open.org/ubl/os-UBL-2.1/UBL-2.1.html#xsd1) [XSD2](http://docs.oasis-open.org/ubl/os-UBL-2.1/UBL-2.1.html#xsd2)
- XSLT - Extensible Stylesheet Language Transformations (a transformation language) [XSLT 2.0](http://docs.oasis-open.org/ubl/os-UBL-2.1/UBL-2.1.html#b_xslt20)

Useful links
------------

[](#useful-links)

- [Aplicații web RO-eFactura - completare manuală](https://mfinante.gov.ro/ro/web/efactura/aplicatii-web-ro-efactura)
- [E-invoicing in Europe](https://dddinvoices.com/learn/e-invoicing-europe/)
- [GitHub - eInvoicing-EN16931](https://github.com/ConnectingEurope/eInvoicing-EN16931)
- [Prezentare servicii web pentru Sistemul național privind factura electronică RO e-Factura](https://mfinante.gov.ro/static/10/eFactura/prezentare%20api%20efactura.pdf)
- [UBL specifications - multiple versions](https://ubl.xml.org/wiki/ubl-specifications)
- [UNL 2.1 specification](https://docs.oasis-open.org/ubl/UBL-2.1.html)
- [UBL 2.1 Invoice Example: 6 Steps to Create Your Own (XML Format)](https://www.storecove.com/blog/en/creating-your-own-ubl-invoice/?unbounce_brid=1705651446_009411_26a4ce94605ccc39070d57d1622f2a4d) by Nikkie Bakker on 2019 April 17

Repository badges
-----------------

[](#repository-badges)

[![Latest Stable Version](https://camo.githubusercontent.com/1d53964169b6575ad7e1627f985107aa2f4b704bcf41ab420c974ba58dbf58dd/68747470733a2f2f706f7365722e707567782e6f72672f64616e69656c67702f65666163747572612f762f737461626c65)](https://packagist.org/packages/danielgp/efactura)[![License](https://camo.githubusercontent.com/3dd377c85ffff14f3c44bc1a65fab791ef5f8277e29e63f2f70a70885afa5463/68747470733a2f2f706f7365722e707567782e6f72672f64616e69656c67702f65666163747572612f6c6963656e7365)](https://packagist.org/packages/danielgp/efactura)[![Total Downloads](https://camo.githubusercontent.com/2b0678744d6b85f77ca9291707e9edbd9834c382ab8d770110cf89a826bbfbc6/68747470733a2f2f706f7365722e707567782e6f72672f64616e69656c67702f65666163747572612f646f776e6c6f616473)](https://packagist.org/packages/danielgp/efactura)[![Monthly Downloads](https://camo.githubusercontent.com/97197224ca97a12ce4f496df4b018d7d908c241854bfffe031181dc0d543fb57/68747470733a2f2f706f7365722e707567782e6f72672f64616e69656c67702f65666163747572612f642f6d6f6e74686c79)](https://packagist.org/packages/danielgp/efactura)[![Daily Downloads](https://camo.githubusercontent.com/3619b910ed64fa3cf2fa3a943d691f1c431aad9d6c2467848ac40117fa1b5f29/68747470733a2f2f706f7365722e707567782e6f72672f64616e69656c67702f65666163747572612f642f6461696c79)](https://packagist.org/packages/danielgp/efactura)[![FOSSA Status](https://camo.githubusercontent.com/7ff63e433c8b482451aacb62312d9bb6c88ef8a29e5f49e88819f81c9eb2e92b/68747470733a2f2f6170702e666f7373612e636f6d2f6170692f70726f6a656374732f6769742532426769746875622e636f6d25324664616e69656c677025324665466163747572612e7376673f747970653d736869656c64)](https://app.fossa.com/projects/git%2Bgithub.com%2Fdanielgp%2FeFactura?ref=badge_shield)

Code quality analysis
---------------------

[](#code-quality-analysis)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/7ed8d0322c373890785ff99b1b53e15654afd22b188d7d3ec74ffbb059b0e84a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f64616e69656c67702f65666163747572612f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/danielgp/efactura/?branch=main)[![Scrutinizer Code Coverage](https://camo.githubusercontent.com/2b6a0b9b166e5defb41f9f40927c997e67ca29f9a8cd74198a766b58d76b506e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f64616e69656c67702f65466163747572612f6261646765732f636f7665726167652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/danielgp/eFactura/?branch=main)

License
-------

[](#license)

[![FOSSA Status](https://camo.githubusercontent.com/fa94a205d381e622082a7e056a80c7b71d7f9e01aef58d5336f6ff462d1ca12a/68747470733a2f2f6170702e666f7373612e636f6d2f6170692f70726f6a656374732f6769742532426769746875622e636f6d25324664616e69656c677025324665466163747572612e7376673f747970653d6c61726765)](https://app.fossa.com/projects/git%2Bgithub.com%2Fdanielgp%2FeFactura?ref=badge_large)

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance79

Regular maintenance activity

Popularity12

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 98.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~25 days

Recently: every ~38 days

Total

33

Last Release

58d ago

PHP version history (4 changes)1.0.0PHP &gt;=7.4

1.4.1PHP &gt;=8.3

1.4.2PHP ^8.3 || ^8.4

1.6.2PHP ^8.4 || ^8.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/a1422c4aeb4f66f40a873b82f072fbf171ba1ef71b914ab724d0e2a1f092cad3?d=identicon)[danielgp](/maintainers/danielgp)

---

Top Contributors

[![danielgp](https://avatars.githubusercontent.com/u/4377685?v=4)](https://github.com/danielgp "danielgp (194 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![fossabot](https://avatars.githubusercontent.com/u/29791463?v=4)](https://github.com/fossabot "fossabot (1 commits)")

---

Tags

phpuble-invoicingEN16931einvoicingeFacturaUBL-2.1EN-16931

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/danielgp-efactura/health.svg)

```
[![Health](https://phpackages.com/badges/danielgp-efactura/health.svg)](https://phpackages.com/packages/danielgp-efactura)
```

###  Alternatives

[jason-munro/cypht

Lightweight Open Source webmail written in PHP and JavaScript

1.6k157.9k](/packages/jason-munro-cypht)[easybill/e-invoicing

A package to read and create EN16931 e-invoices or CIUS like: XRechnung, ZUGFeRD etc.

14158.3k](/packages/easybill-e-invoicing)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
