PHPackages                             gunsobal/xmlary - 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. gunsobal/xmlary

Abandoned → [skraeda/xmlary](/?search=skraeda%2Fxmlary)ArchivedLibrary[Parsing &amp; Serialization](/categories/parsing)

gunsobal/xmlary
===============

Collection of helper classes for working with xml

v3.0.0(8y ago)1684MITPHPPHP &gt;=7.0

Since Aug 2Pushed 6y agoCompare

[ Source](https://github.com/Gunsobal/Xmlary)[ Packagist](https://packagist.org/packages/gunsobal/xmlary)[ RSS](/packages/gunsobal-xmlary/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (3)Dependencies (2)Versions (16)Used By (0)

Xmlary
======

[](#xmlary)

[![travis](https://camo.githubusercontent.com/5080976b45ae442b18cf864b6d8a5271e5b612a73271d6f1ffaa94ec0ff2eba7/68747470733a2f2f7472617669732d63692e6f72672f47756e736f62616c2f586d6c6172792e7376673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/5080976b45ae442b18cf864b6d8a5271e5b612a73271d6f1ffaa94ec0ff2eba7/68747470733a2f2f7472617669732d63692e6f72672f47756e736f62616c2f586d6c6172792e7376673f6272616e63683d6d6173746572)

Abandoned
---------

[](#abandoned)

This package has moved to [skraeda/xmlary](https://github.com/Skraeda/xmlary).

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

[](#introduction)

A collection of helper classes I've made to simplify my workflow when using lots of XML with php and extracted into a composer package. The primary function of the package is to generate XML from associative arrays and provide a convenient platform for encapsulating that XML generation in its own object. All classes in this package will be in the Gunsobal\\Xmlary namespace.

Install the package into your project via composer or download the source code here on GitHub.

```
composer install gunsobal/xmlary
```

Documentation
-------------

[](#documentation)

- [Xmlify](docs/xmlify.md)
- [XmlMessage](docs/xmlmessage.md)
- [Support](docs/support.md)

License
-------

[](#license)

Xmlary is open-sourced software licensed under the MIT License

Resources
---------

[](#resources)

Composer package is based on the [template](http://www.darwinbiler.com/creating-composer-package-library/) by Darwin Biler.

Changelog
---------

[](#changelog)

### 03.09.2017

[](#03092017)

- Added changelog
- Refactord Xmlify, might cause builds to fail if they were creating empty elements with attributes when building arrays of arrays.
- Removed XmlParser, XmlConverter and XsdValidator.
- Merged my PHP Utils library with this library under Support class.
- Version, encoding and data properties in XmlMessage are now private.
- XmlMessage now throws an exception if the build method doesn't exist.
- XmlMessage now checks if required property is in correct format.
- XmlMessage now checks if name and build properties are strings and only overwrites default values if they are.
- Updated documenation.
- Added v2.0.0 tag.

### 10.05.2017

[](#10052017)

- Made XmlMessage an abstract class as it should've been from the start.
- Removed build property from XmlMessage and made build an abstract function that must be implemented to adhere to the template pattern.
- Refactored support tests to smaller units.
- Updated docs to reflect slight change to XmlMessage.
- Removed unused functions from support class.

### 11.06.2017

[](#11062017)

- Removed custom exceptions in favour of PHP exceptions.
- Deleted docs about exceptions.
- Updated comment blocks for phpdoc conventions.
- No longer provides support for PHP versions less than 7
- Updated PHPUnit devDependency
- Integrated travis-ci

Issues
------

[](#issues)

If you encounter any bugs or issues please report them here on GitHub so I can look into them.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity66

Established project with proven stability

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

Total

15

Last Release

3097d ago

Major Versions

v0.5.0 → v1.0.02017-08-02

v1.0.7 → v2.0.02017-09-03

v2.0.2 → v3.0.02017-11-07

PHP version history (2 changes)v0.5.0PHP &gt;=5.4

v3.0.0PHP &gt;=7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15886771?v=4)[Gunnar Örn Baldursson](/maintainers/Gunsobal)[@Gunsobal](https://github.com/Gunsobal)

---

Top Contributors

[![Gunsobal](https://avatars.githubusercontent.com/u/15886771?v=4)](https://github.com/Gunsobal "Gunsobal (107 commits)")

---

Tags

xmlxmlaryxmlifyxmlmessage

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gunsobal-xmlary/health.svg)

```
[![Health](https://phpackages.com/badges/gunsobal-xmlary/health.svg)](https://phpackages.com/packages/gunsobal-xmlary)
```

###  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/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)[sabre/xml

sabre/xml is an XML library that you may not hate.

52832.2M131](/packages/sabre-xml)

PHPackages © 2026

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