PHPackages                             ggavrilut/ubl-invoice - 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. [Payment Processing](/categories/payments)
4. /
5. ggavrilut/ubl-invoice

ActiveLibrary[Payment Processing](/categories/payments)

ggavrilut/ubl-invoice
=====================

A modern object-oriented PHP library to create valid UBL files

v1.14(2y ago)013MITPHPPHP ^7.1||^8.0

Since Oct 24Pushed 2y agoCompare

[ Source](https://github.com/ggavrilut/ubl-invoice)[ Packagist](https://packagist.org/packages/ggavrilut/ubl-invoice)[ Docs](https://github.com/ggavrilut/ubl-invoice)[ RSS](/packages/ggavrilut-ubl-invoice/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (3)Versions (36)Used By (0)

UBL-Invoice
===========

[](#ubl-invoice)

A modern object-oriented PHP library to create valid UBL files. Please feel free to [contribute](https://github.com/ggavrilut/ubl-invoice/pulls) if you are missing features or tags.

Installation and usage
----------------------

[](#installation-and-usage)

This package requires PHP 7.0 or higher. Installation can be done through [composer](https://www.getcomposer.org).

```
$ composer require ggavrilut/ubl-invoice
```

Contributing
------------

[](#contributing)

This library is not 100% UBL feature-complete, in the sense that it doesn't (yet) support **all** UBL XML tags &amp; functionality. "Yet" being the keyword, since this definitely is the long-term goal. All common UBL tags that are required for most invoices are present in the library. This includes tags for discounts, cash discounts, special vat rates, etc...

If you are missing functionality, please feel free to add it :-) Adding additional tags &amp; attributes is fairly straight-forward. Check out [CONTRIBUTING.md](CONTRIBUTING.md) for more information.

Examples &amp; documentation
----------------------------

[](#examples--documentation)

This repository does not have a documentation website at this moment. For now, please check out some code examples by checking the unit tests in the `tests` folder.

Changelog
---------

[](#changelog)

A changelog is available since version v1.9.0. If you are upgrading a minor version (1.x) or major version, please check the changelog to see if you need to implement any breaking changes...

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 72% 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 ~57 days

Recently: every ~285 days

Total

34

Last Release

903d ago

PHP version history (3 changes)v1.0PHP ^7.0

v1.9.0PHP ^7.1

v1.12PHP ^7.1||^8.0

### Community

Maintainers

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

---

Top Contributors

[![brtdv](https://avatars.githubusercontent.com/u/932365?v=4)](https://github.com/brtdv "brtdv (90 commits)")[![p1eterdeboer](https://avatars.githubusercontent.com/u/33135160?v=4)](https://github.com/p1eterdeboer "p1eterdeboer (7 commits)")[![rodehoed](https://avatars.githubusercontent.com/u/6515395?v=4)](https://github.com/rodehoed "rodehoed (6 commits)")[![ggavrilut](https://avatars.githubusercontent.com/u/2571916?v=4)](https://github.com/ggavrilut "ggavrilut (5 commits)")[![mabjavaid](https://avatars.githubusercontent.com/u/62252347?v=4)](https://github.com/mabjavaid "mabjavaid (4 commits)")[![Stormyy](https://avatars.githubusercontent.com/u/5009558?v=4)](https://github.com/Stormyy "Stormyy (3 commits)")[![japsen](https://avatars.githubusercontent.com/u/4325546?v=4)](https://github.com/japsen "japsen (2 commits)")[![karstennilsen](https://avatars.githubusercontent.com/u/8917480?v=4)](https://github.com/karstennilsen "karstennilsen (2 commits)")[![stedekay](https://avatars.githubusercontent.com/u/1071560?v=4)](https://github.com/stedekay "stedekay (2 commits)")[![it-can](https://avatars.githubusercontent.com/u/644288?v=4)](https://github.com/it-can "it-can (1 commits)")[![homer8173](https://avatars.githubusercontent.com/u/8720867?v=4)](https://github.com/homer8173 "homer8173 (1 commits)")[![ChristianVermeulen](https://avatars.githubusercontent.com/u/1062751?v=4)](https://github.com/ChristianVermeulen "ChristianVermeulen (1 commits)")[![BBrunekreeft](https://avatars.githubusercontent.com/u/9114578?v=4)](https://github.com/BBrunekreeft "BBrunekreeft (1 commits)")

---

Tags

xmlinvoiceublinvoiceelectronic invoicexml invoiceubl invoicedigital invoiceublefff

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/ggavrilut-ubl-invoice/health.svg)

```
[![Health](https://phpackages.com/badges/ggavrilut-ubl-invoice/health.svg)](https://phpackages.com/packages/ggavrilut-ubl-invoice)
```

###  Alternatives

[num-num/ubl-invoice

A modern object-oriented PHP library to create and read valid UBL and EN 16931/Peppol BIS 3.0 files

136923.4k](/packages/num-num-ubl-invoice)[saleh7/php-zatca-xml

An unofficial PHP library for generating ZATCA Fatoora e-invoices. This library facilitates the creation of compliant e-invoices, QR Codes, and certificates, as well as the submission of e-invoices to ZATCA's servers. It provides developers with an easy-to-use, customizable, and robust toolkit to integrate and automate ZATCA e-invoicing processes in PHP applications.

5618.1k](/packages/saleh7-php-zatca-xml)[sevaske/php-zatca-xml

An unofficial PHP library for generating ZATCA Fatoora e-invoices. This library facilitates the creation of compliant e-invoices, QR Codes, and certificates, as well as the submission of e-invoices to ZATCA's servers. It provides developers with an easy-to-use, customizable, and robust toolkit to integrate and automate ZATCA e-invoicing processes in PHP applications.

2113.9k1](/packages/sevaske-php-zatca-xml)[cleverit/ubl_invoice

A PHP wrapper for UBL invoices

36287.1k](/packages/cleverit-ubl-invoice)[atgp/factur-x

PHP library to manage your Factur-X / ZUGFeRD 2.0 PDF invoices files

153915.3k4](/packages/atgp-factur-x)[josemmo/einvoicing

Library for reading and creating European-compliant electronic invoices (EN 16931)

177358.5k3](/packages/josemmo-einvoicing)

PHPackages © 2026

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