PHPackages                             kingson-de/marshal-xml-serializer - 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. kingson-de/marshal-xml-serializer

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

kingson-de/marshal-xml-serializer
=================================

Marshal XML is serializing / marshalling data structures to XML. It is also deserializing / unmarshalling XML back to the data structures.

v1.2.1(7y ago)310531Apache-2.0PHPPHP ^7.0

Since Dec 21Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Kingson-de/marshal-xml-serializer)[ Packagist](https://packagist.org/packages/kingson-de/marshal-xml-serializer)[ RSS](/packages/kingson-de-marshal-xml-serializer/feed)WikiDiscussions master Synced yesterday

READMEChangelog (5)Dependencies (2)Versions (6)Used By (1)

Marshal XML Serializer
======================

[](#marshal-xml-serializer)

[![Marshal Serializer logo](https://raw.githubusercontent.com/Kingson-de/marshal-serializer/master/marshal.png "Marshal Serializer")](https://raw.githubusercontent.com/Kingson-de/marshal-serializer/master/marshal.png)

[![License](https://camo.githubusercontent.com/a549a7a30bacba7bfceebdc207a8e86c3f2c02995a2527640dca30048fd2b64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d417061636865253230322e302d626c75652e737667)](https://github.com/Kingson-de/marshal-xml-serializer/blob/master/LICENSE)[![Build Status](https://camo.githubusercontent.com/549831823661fcfdbb6ab069cd17489bfcf1c210e8d4c57b6a4c71935640d597/68747470733a2f2f7472617669732d63692e6f72672f4b696e67736f6e2d64652f6d61727368616c2d786d6c2d73657269616c697a65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Kingson-de/marshal-xml-serializer)[![Code Coverage](https://camo.githubusercontent.com/1095becb776a3363baf992c423826b114025fe3b71812142a27a826af57366ab/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4b696e67736f6e2d64652f6d61727368616c2d786d6c2d73657269616c697a65722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Kingson-de/marshal-xml-serializer/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/b709bfaf0df5ec702817ae69c9d1d5675899b8a9b5a8e1e32cae2587ce2ee56b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4b696e67736f6e2d64652f6d61727368616c2d786d6c2d73657269616c697a65722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Kingson-de/marshal-xml-serializer/?branch=master)

Introduction
------------

[](#introduction)

Marshal XML is [serializing](https://en.wikipedia.org/wiki/Serialization) / [marshalling](https://en.wikipedia.org/wiki/Marshalling_(computer_science)) data structures to XML. It is also deserializing / unmarshalling XML back to the data structures.

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

[](#installation)

Easiest way to install the library is via composer:

```
composer require kingson-de/marshal-xml-serializer

```

The following PHP versions are supported:

- PHP 7.0
- PHP 7.1
- PHP 7.2
- PHP 7.3

Execute tests
-------------

[](#execute-tests)

Just run:

```
composer test

```

Or without code coverage:

```
composer quicktest

```

Usage
-----

[](#usage)

### How to create Data Structures which can be serialized?

[](#how-to-create-data-structures-which-can-be-serialized)

Please check the [Marshal Serializer README](https://github.com/Kingson-de/marshal-serializer/blob/master/README.md) for more information.

### How to use the Marshal XML Serializer library?

[](#how-to-use-the-marshal-xml-serializer-library)

The library provides several static methods to create your XML data once you defined the data structures.

```
Hello World!';

$flexibleData = new FlexibleData(MarshalXml::deserializeXmlToData($xml));

$flexibleData['root']['tag'] = 'some other text';

$modifiedXml = MarshalXml::serialize($flexibleData);
```

License
-------

[](#license)

This project is released under the terms of the [Apache 2.0 license](https://github.com/Kingson-de/marshal-xml-serializer/blob/master/LICENSE).

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

Established project with proven stability

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 ~80 days

Total

5

Last Release

2745d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/de50619e00f5832c3d0c9ab69189172d719ee27c3cdc50dee59c7c1435e491c4?d=identicon)[Kingson-de](/maintainers/Kingson-de)

---

Tags

cdatadeserializermappersmappingmarshalmarshallingphpresponseserializationserialization-libraryserializerunmarshallingwebservicexmlxml-serializationxmlserializerserializationMarshalmappersdeserializercdatamarshallingunmarshalling

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kingson-de-marshal-xml-serializer/health.svg)

```
[![Health](https://phpackages.com/badges/kingson-de-marshal-xml-serializer/health.svg)](https://phpackages.com/packages/kingson-de-marshal-xml-serializer)
```

###  Alternatives

[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[jms/serializer

Library for (de-)serializing data of any complexity; supports XML, and JSON.

2.3k135.8M851](/packages/jms-serializer)[jms/serializer-bundle

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

1.8k89.3M627](/packages/jms-serializer-bundle)[goetas-webservices/xsd2php

Convert XSD (XML Schema) definitions into PHP classes and JMS metadata

2411.6M37](/packages/goetas-webservices-xsd2php)[goetas-webservices/xsd2php-runtime

Convert XSD (XML Schema) definitions into PHP classes

4910.9M36](/packages/goetas-webservices-xsd2php-runtime)[flix-tech/avro-serde-php

A library to serialize and deserialize Avro records making use of the confluent schema registry

674.0M17](/packages/flix-tech-avro-serde-php)

PHPackages © 2026

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