PHPackages                             johnkzn/array\_to\_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. [Utility &amp; Helpers](/categories/utility)
4. /
5. johnkzn/array\_to\_xml

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

johnkzn/array\_to\_xml
======================

Convert php array to xml document

04PHP

Since Dec 2Pushed 8y ago1 watchersCompare

[ Source](https://github.com/konoha/array_to_xml)[ Packagist](https://packagist.org/packages/johnkzn/array_to_xml)[ RSS](/packages/johnkzn-array-to-xml/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

array\_to\_xml
--------------

[](#array_to_xml)

### Install

[](#install)

```
"johnkzn/array_to_xml": "*"

```

Then do `composer install`.

### Usage

[](#usage)

```
$xml = new arrayToXml();
$array = [
    [
        'tag' => 'root',
        'elements' => [
            [
                'tag' => 'tag_1',
                'attributes' => [
                    'attr_1' => 'val_1'
                ],
                'content' => 'content_1',
            ],
            [
                'tag' => 'tag_2',
                'content' => 'content_2',
            ]
        ],
    ],
];
echo $xml->load($in)->out();
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8d4920d2dcd14f5588dc543c7aaf6abaf25f9fb063cf2953bfdcb58a98883cc2?d=identicon)[konoha](/maintainers/konoha)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/johnkzn-array-to-xml/health.svg)

```
[![Health](https://phpackages.com/badges/johnkzn-array-to-xml/health.svg)](https://phpackages.com/packages/johnkzn-array-to-xml)
```

PHPackages © 2026

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