PHPackages                             chrisullyott/php-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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. chrisullyott/php-xml

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

chrisullyott/php-xml
====================

XML-to-array conversion in PHP.

v2.0.0(6y ago)1407↓92.3%1MITPHPPHP &gt;=5.6.0CI failing

Since Mar 24Pushed 6y ago1 watchersCompare

[ Source](https://github.com/chrisullyott/php-xml)[ Packagist](https://packagist.org/packages/chrisullyott/php-xml)[ Docs](https://github.com/chrisullyott/php-xml)[ RSS](/packages/chrisullyott-php-xml/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (1)Versions (5)Used By (0)

php-xml
=======

[](#php-xml)

XML-to-array conversion in PHP. Built for pulling items from a variety of RSS feeds.

### Installation

[](#installation)

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

```
$ composer require chrisullyott/php-xml
```

### Usage

[](#usage)

```
use ChrisUllyott\XmlParser;

$parser = new XmlParser('path/to/feed.xml'); // or pass in a raw XML string

$items = $parser->getItems();

print_r($items);
```

Each feed item and their child attributes are parsed into a flat structure:

```
(
    [0] => Array
        (
            [title] => News for September the Second
            [link] => http://example.com/2002/09/01/news-for-september-the-second
            [guid] => 20020901-news-for-september-the-second
            [guid_isPermaLink] => 0
            [description] => Things happened today!
        )

    [1] => Array
        (
            [title] => News for September the First
            [link] => http://example.com/2002/09/01/news-for-september-the-first
            [guid] => 20020901-news-for-september-the-first
            [guid_isPermaLink] => 0
            [description] => Things happened today!
        )

)

```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

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

Total

3

Last Release

2377d ago

Major Versions

v0.0.1 → v1.0.02019-12-28

v1.0.0 → v2.0.02019-12-30

PHP version history (2 changes)v0.0.1PHP &gt;=5.3.0

v1.0.0PHP &gt;=5.6.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1007459?v=4)[Chris](/maintainers/chrisullyott)[@chrisullyott](https://github.com/chrisullyott)

---

Top Contributors

[![chrisullyott](https://avatars.githubusercontent.com/u/1007459?v=4)](https://github.com/chrisullyott "chrisullyott (21 commits)")

---

Tags

phprssxmlphpxml

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/chrisullyott-php-xml/health.svg)

```
[![Health](https://phpackages.com/badges/chrisullyott-php-xml/health.svg)](https://phpackages.com/packages/chrisullyott-php-xml)
```

###  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.

69124.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.

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

PHPackages © 2026

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