PHPackages                             overbid/arrayasxml - 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. overbid/arrayasxml

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

overbid/arrayasxml
==================

Simple class, array as xml converter.

v0.2(10y ago)3194MITPHP

Since Jul 17Pushed 10y ago1 watchersCompare

[ Source](https://github.com/overbid/arrayasxml)[ Packagist](https://packagist.org/packages/overbid/arrayasxml)[ Docs](https://github.com/overbid/arrayasxml)[ RSS](/packages/overbid-arrayasxml/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

ArrayAsXml
==========

[](#arrayasxml)

ArrayAsXml is a simple PHP class that converts array to XML.

Based on [SimpleXML](http://php.net/manual/en/book.simplexml.php).

### Installation

[](#installation)

via [Composer](https://getcomposer.org/)

```
composer require overbid/arrayasxml
```

### Usage

[](#usage)

#### Load the library

[](#load-the-library)

```
require 'vendor/autoload.php';
use Overbid\ArrayAsXml;
```

#### Set custom configuration:

[](#set-custom-configuration)

```
$arrayAsXml = new ArrayAsXml();
$arrayAsXml->setEncoding('TIS-620');  //default UTF-8
$arrayAsXml->setRootName('main');     //defaul root
```

#### Creat XML

[](#creat-xml)

```
echo $arrayAsXml->save($data);
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Total

2

Last Release

3979d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9ae6f04e8a5f08bc9ad1f89eedab039781efa697cf13a1fb25e5d0ffe9aa2513?d=identicon)[overbid](/maintainers/overbid)

---

Top Contributors

[![overbid](https://avatars.githubusercontent.com/u/529623?v=4)](https://github.com/overbid "overbid (2 commits)")

---

Tags

phpxml

### Embed Badge

![Health badge](/badges/overbid-arrayasxml/health.svg)

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

###  Alternatives

[m1/vars

Vars is a simple to use and easily extendable configuration loader with in built loaders for ini, json, PHP, toml, XML and yaml/yml file types. It also comes with in built support for Silex and more frameworks to come soon.

64124.3k1](/packages/m1-vars)[goetas/xsd2php-runtime

Convert XSD (XML Schema) definitions into PHP classes

493.3k](/packages/goetas-xsd2php-runtime)[bupy7/xml-constructor

The array-like constructor of XML document structure.

1338.9k](/packages/bupy7-xml-constructor)

PHPackages © 2026

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