PHPackages                             casperbiering/dotnet-binary-xml - 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. casperbiering/dotnet-binary-xml

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

casperbiering/dotnet-binary-xml
===============================

Parsing and writing of .NET Binary Format

v2.0.0(3y ago)31.4k2[1 issues](https://github.com/casperbiering/dotnet-binary-xml/issues)MITPHPPHP &gt;=7.3

Since Nov 5Pushed 3y ago3 watchersCompare

[ Source](https://github.com/casperbiering/dotnet-binary-xml)[ Packagist](https://packagist.org/packages/casperbiering/dotnet-binary-xml)[ RSS](/packages/casperbiering-dotnet-binary-xml/feed)WikiDiscussions main Synced 1mo ago

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

dotnet-binary-xml
=================

[](#dotnet-binary-xml)

[![Build Status](https://camo.githubusercontent.com/9e87bc41e3b94407aae557246d39d130a378bc9847f84c896bc4e87e04181284/68747470733a2f2f7472617669732d63692e6f72672f63617370657262696572696e672f646f746e65742d62696e6172792d786d6c2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/casperbiering/dotnet-binary-xml)

**dotnet-binary-xml** is a PHP implementation of the [.NET Binary Format: XML Data Structure (MC-NBFX)](http://msdn.microsoft.com/en-us/library/cc219210.aspx).

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

[](#installation)

Just install [Composer](http://getcomposer.org) and run `composer require casperbiering/dotnet-binary-xml` in your project directory.

Requirements
------------

[](#requirements)

- XMLReader (PHP extension)
- XMLWriter (PHP extension)
- MBString (PHP extension)
- GMP (PHP extension)

Known/Missing Issues
--------------------

[](#knownmissing-issues)

- encoded output is not optimized
- local timezone offset in datetime

Specification Inconsistencies
-----------------------------

[](#specification-inconsistencies)

- [Spec](http://msdn.microsoft.com/en-us/library/cc219251(v=PROT.10).aspx) says that "If the hour, minutes, seconds, and fraction of second parts are zero, the date MUST be interpreted as the following characters. yyyy-MM-dd". That does not match the [examples](https://msdn.microsoft.com/en-us/library/cc219284.aspx).
- [Spec](http://msdn.microsoft.com/en-us/library/cc219270(v=PROT.10).aspx) says that UnicodeChars32TextRecord MUST be encoded using MultiByteInt31. That does not match the [examples](https://msdn.microsoft.com/en-us/library/cc219284.aspx).

License
-------

[](#license)

MIT

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

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

Total

2

Last Release

1358d ago

Major Versions

v1.0.0 → v2.0.02022-08-29

PHP version history (2 changes)v1.0.0PHP &gt;=5.3

v2.0.0PHP &gt;=7.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/4234dd9b6338d9832db5c1ca45ef652e188a64958d714e5aae9a3c943123c0f6?d=identicon)[casperbiering](/maintainers/casperbiering)

---

Top Contributors

[![casperbiering](https://avatars.githubusercontent.com/u/461165?v=4)](https://github.com/casperbiering "casperbiering (28 commits)")[![z38](https://avatars.githubusercontent.com/u/3948085?v=4)](https://github.com/z38 "z38 (14 commits)")[![ardabeyazoglu](https://avatars.githubusercontent.com/u/1159836?v=4)](https://github.com/ardabeyazoglu "ardabeyazoglu (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/casperbiering-dotnet-binary-xml/health.svg)

```
[![Health](https://phpackages.com/badges/casperbiering-dotnet-binary-xml/health.svg)](https://phpackages.com/packages/casperbiering-dotnet-binary-xml)
```

###  Alternatives

[masterminds/html5

An HTML5 parser and serializer.

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

Parser for CSS Files written in PHP

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

Class/method/property metadata management in PHP

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

Allows you to easily serialize, and deserialize data of any complexity

1.8k89.3M627](/packages/jms-serializer-bundle)[hassankhan/config

Lightweight configuration file loader that supports PHP, INI, XML, JSON, and YAML files

97513.5M170](/packages/hassankhan-config)[meyfa/php-svg

Read, edit, write, and render SVG files with PHP

54613.9M42](/packages/meyfa-php-svg)

PHPackages © 2026

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