PHPackages                             alyjee/from-xml-to-array - 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. alyjee/from-xml-to-array

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

alyjee/from-xml-to-array
========================

Conversion from xml to array

1.0(7y ago)098MITPHPPHP &gt;=7.1

Since Jun 5Pushed 7y ago1 watchersCompare

[ Source](https://github.com/alyjee/from-xml-to-array)[ Packagist](https://packagist.org/packages/alyjee/from-xml-to-array)[ RSS](/packages/alyjee-from-xml-to-array/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

Conversion from xml to an array
===============================

[](#conversion-from-xml-to-an-array)

A package inspired by vyuldashev/xml-to-array to convert an xml to array

Inspired by Vyuldashev's [xml-to-array](https://github.com/vyuldashev/xml-to-array) ❤️

Install
-------

[](#install)

You can install this package via composer.

```
composer require alyjee/from-xml-to-array
```

Usage
-----

[](#usage)

```
use Alyjee\XmlToArray\XmlToArray;

$xml = '';

$result = XmlToArray::convert($xml);
```

After running this piece of code `$result` will contain:

```
Array
(
    [items] => Array
        (
            [Facilities] => Array
                (
                    [Facility] => Array
                        (
                            [0] => Array
                                (
                                    [_attributes] => Array
                                        (
                                            [Code] => *EC
                                        )

                                    [_cdata] => Earliest check-in at 14:00
                                )

                            [1] => Array
                                (
                                    [_attributes] => Array
                                        (
                                            [Code] => *LF
                                        )

                                    [_cdata] => 1 lift
                                )

                            [2] => Array
                                (
                                    [_attributes] => Array
                                        (
                                            [Code] => *RS
                                        )

                                    [_cdata] => Room Service from 18:00 to 21:00
                                )

                        )

                )

        )

)
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Unknown

Total

1

Last Release

2901d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/07839698aeabbfd3e319f6c01b5cc6d968812583f043be3bfca04531879ad911?d=identicon)[alyjee](/maintainers/alyjee)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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