danielgp / efactura
eFactura scripts to produce and read XML files containing official selling details to help out business data exchange and authorities oversight
1.5.6
2025-04-01 11:54 UTC
Requires
- php: ^8.3 || ^8.4
- ext-json: *
- ext-mbstring: *
- ext-simplexml: *
- ext-xml: *
- ext-xmlwriter: *
- danielgp/io-operations: ~2
- fortawesome/font-awesome: ~6.7
- gettext/gettext: ~5.7
- lipis/flag-icons: ~7.3
- phpunit/php-timer: ~8.0
- twbs/bootstrap: ~5.3
Requires (Dev)
- phpunit/phpunit: ~12
README
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
PHP developers that serves various business to accomodate custom applications involving selling activity in Romania.
Usage
- add to your
composer.json
file, branchrequire
following line:"danielgp/efactura": "<target_version_specification_here>"
and save - execute a composer update to fetch the library components
- add
use \danielgp\eFactura\TraitBackEndRomania;
to your custom class - customize $this->arraySolutionCustomSettings as per your needs (see definition from TraitBackEndRomania.php file)
- consult 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
- 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
- BBIE - Basic Business Information Entity
- BIE - Business Information Entity
- C14N - Canonicalization
- CC - Core Component
- CPFR - Collaborative Planning, Forecasting, and Replenishment 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
- XML - Extensible Markup Language
- XMLDSig - XML Digital Signature xmldsig
- XPath - The XML Path Language
- XSD - W3C XML Schema Language XSD1 XSD2
- XSLT - Extensible Stylesheet Language Transformations (a transformation language) XSLT 2.0
Useful links
- Aplicații web RO-eFactura - completare manuală
- E-invoicing in Europe
- GitHub - eInvoicing-EN16931
- Prezentare servicii web pentru Sistemul național privind factura electronică RO e-Factura
- UBL specifications - multiple versions
- UNL 2.1 specification
- UBL 2.1 Invoice Example: 6 Steps to Create Your Own (XML Format) by Nikkie Bakker on 2019 April 17