PHPackages                             ghopper/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. ghopper/array\_to\_xml

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

ghopper/array\_to\_xml
======================

v0.2(9y ago)017MITPHP

Since May 2Pushed 9y ago1 watchersCompare

[ Source](https://github.com/GHopperMSK/array_to_xml)[ Packagist](https://packagist.org/packages/ghopper/array_to_xml)[ RSS](/packages/ghopper-array-to-xml/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (3)Used By (0)

arrayToXml
==========

[](#arraytoxml)

Convenient way for xml-feed generation. You can get an multi-depth feed right from a SQL-query result!

Configuring
-----------

[](#configuring)

All you need is an array with specific structure. Array

```
[
    [
        'books_book_id' => '1',
        'books_book_name' => 'Suffocationg',
        'books_book_author' => 'Chuck Palahniuk'
    ],
    [
        'books_book_id' => '2',
        'books_book_name' => 'Atlas Shrugged',
        'books_book_author' => 'Ayn Rand'
    ]
]

```

Will be transformed into

```

                1
                Suffocationg
                Chuck Palahniuk

                2
                Atlas Shrugged
                Ayn Rand

```

Also, you can specify tag attributes by adding "*key-value*" marker in a column name. Array

```
[
    [
        'books_book_key-value_id' => '1',
        'books_book_name' => 'Suffocationg',
        'books_book_author' => 'Chuck Palahniuk'
    ],
    [
        'books_book_key-value_id' => '2',
        'books_book_name' => 'Atlas Shrugged',
        'books_book_author' => 'Ayn Rand'
    ]
];

```

Will be transfored into

```

                Suffocationg
                Chuck Palahniuk

                Atlas Shrugged
                Ayn Rand

```

Look at the *example* folder for more information.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

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

3346d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4691144?v=4)[Ian](/maintainers/GHopper)[@ghopper](https://github.com/ghopper)

---

Top Contributors

[![np25071984](https://avatars.githubusercontent.com/u/19670887?v=4)](https://github.com/np25071984 "np25071984 (1 commits)")

---

Tags

xml feed generator array

### Embed Badge

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

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

###  Alternatives

[riari/laravel-forum

A Laravel package providing a solid foundation for building discussion forums

65097.7k3](/packages/riari-laravel-forum)[coderello/laraflash

Advanced flash messages for Laravel.

15737.2k1](/packages/coderello-laraflash)

PHPackages © 2026

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