youniwemi/digital-invoice

Digital Invoice is an easy wrapper around easybill/zugferd-php, josemmo/einvoicing and atgp/factur-x that will allow you generate Factur-x and UBL (Peppol, Cius...) invoices in a very easy way.

Fund package maintenance!
rahal

v0.2.5 2025-07-24 00:29 UTC

This package is auto-updated.

Last update: 2025-07-24 00:30:32 UTC


README

Digital Invoice offers an effortless and unified interface for generating E-Invoices across various formats. It serves as a simplified wrapper around key libraries such as easybill/zugferd-php, josemmo/einvoicing, and atgp/factur-x. Our objective is to streamline the process of E-Invoice generation by bringing together the capabilities of these established libraries into one easy-to-use package.

We extend our sincere appreciation to the developers of these libraries for their foundational contributions to the field.

Supported Formats

Digital Invoice supports a range of formats, catering to diverse invoicing needs:

  • Factur-X PDF Invoice:

    • Profiles: MINIMUM, BASIC_WL, BASIC, EN16931, EXTENDED
  • ZUGFeRD PDF Invoice:

    • Profiles: CONFORT, BASIC, EXTENDED
  • XRechnung XML Invoice:

    • A widely-used German XML format
  • UBL XML Invoices:

    • Profiles: Peppol, Nlcius, CiusRo, CiusIt, CiusEsFace, CiusAtNat, CiusAtGov, Malaysia

Installation

composer require youniwemi/digital-invoice

Getting Started

To integrate Digital Invoice into your PHP project:

  1. Install via Composer (see Installation section above)
  2. Explore our test cases for examples and usage guidelines

Key Features

  • Enhanced Buyer Identification: Support for multiple identification types (TAX, VAT, LEGAL, ELECTRONIC)
  • Multi-Currency Support: Including Malaysian Ringgit (MYR) for Malaysia UBL invoices
  • Comprehensive Format Coverage: Support for all major European e-invoicing standards plus Malaysia
  • Unified API: Single interface for all supported formats

Digital Invoice enables you to generate E-Invoices in the following formats with ease:

  • Factur-X PDF Invoice:

    • Profiles: MINIMUM, BASIC_WL, BASIC, EN16931, EXTENDED
  • ZUGFeRD PDF Invoice:

    • Profiles: CONFORT, BASIC, EXTENDED
  • XRechnung XML Invoice:

    • A standard German XML format
  • UBL XML Invoices:

    • Profiles: Peppol, Nlcius, CiusRo, CiusIt, CiusEsFace, CiusAtNat, CiusAtGov, Malaysia

Development Status and Collaboration

Active Development: Please note that Digital Invoice is currently under active development. As such, the API and functionalities may undergo changes. We encourage users to use this package with caution and to stay updated with the latest versions for the most stable experience.

Collaboration and Support: We welcome collaboration and are eager to support specific use cases that enhance the utility of Digital Invoice. If you have unique invoicing needs or suggestions for improvements, we would be delighted to hear from you and work together to expand the capabilities of this package. Your contributions and feedback are invaluable in shaping a more versatile and robust tool.

Contributors

@yassiNebeL : Adding support to UBL Format using josemmo/einvoicing

Credits and Acknowledgements

We are grateful to the following projects and teams for their contributions: