PHPackages                             noka-design/php-ubl - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. noka-design/php-ubl

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

noka-design/php-ubl
===================

Deserialize UBL xml to PHP objects

v0.3(5y ago)4873↓100%MITPHP

Since Nov 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Hubhus/PHP-UBL)[ Packagist](https://packagist.org/packages/noka-design/php-ubl)[ RSS](/packages/noka-design-php-ubl/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (5)Used By (0)

PHP-UBL
=======

[](#php-ubl)

Deserialize UBL v2.0 Invoices (xml) to PHP objects, or vice versa.

Installation
------------

[](#installation)

```
composer require noka-design/php-ubl
```

Usage
-----

[](#usage)

```
$serializer = \NOKA\PHPUBL\PHPUBL::getSerializer();
$xml = file_get_contents('path/to/invoice.sml');
$invoice = $serializer->deserialize($xml, \NOKA\PHPUBL\UBL\Invoice::class, 'xml');
```

Credits
-------

[](#credits)

Classes generated using [xsd2php](https://github.com/goetas-webservices/xsd2php)

Uses [JMS Serializer](https://github.com/schmittjoh/serializer) for serializing/deserializing

Uses UBL 2.0 schema definitions from [Oasis](https://docs.oasis-open.org/ubl/os-UBL-2.0/UBL-2.0.html)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

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

Total

4

Last Release

1987d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6514342?v=4)[Morten Scheel](/maintainers/mortenscheel)[@mortenscheel](https://github.com/mortenscheel)

---

Top Contributors

[![mortenscheel](https://avatars.githubusercontent.com/u/6514342?v=4)](https://github.com/mortenscheel "mortenscheel (6 commits)")

### Embed Badge

![Health badge](/badges/noka-design-php-ubl/health.svg)

```
[![Health](https://phpackages.com/badges/noka-design-php-ubl/health.svg)](https://phpackages.com/packages/noka-design-php-ubl)
```

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k230.0M284](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M228](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[michelf/php-markdown

PHP Markdown

3.5k52.4M345](/packages/michelf-php-markdown)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)

PHPackages © 2026

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