PHPackages                             sempro/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. sempro/xml

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

sempro/xml
==========

Work with XML structures with ease

1.0.2(8y ago)26.9kMITPHP

Since Mar 14Pushed 8y ago5 watchersCompare

[ Source](https://github.com/s360digital/xml)[ Packagist](https://packagist.org/packages/sempro/xml)[ RSS](/packages/sempro-xml/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

xml
===

[](#xml)

[![Travis](https://camo.githubusercontent.com/22cbfded35e65389a84f71c5a6a58995ddefcc6de594d31f07316b47d0c5e16c/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f53656d70726f2f786d6c2e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Sempro/xml.svg?branch=master)[![Packagist](https://camo.githubusercontent.com/99544d1be916688d913aa420fd17bbce9d6c5c91d2b184096a49ee5d908003f0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73656d70726f2f786d6c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sempro/xml)[![Packagist](https://camo.githubusercontent.com/0036699bec50342b4f90f7aee9f53b3ab1842f062d699a48048635b19a2fac95/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73656d70726f2f786d6c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sempro/xml)[![PRs Welcome](https://camo.githubusercontent.com/25b3e6d0d42c98de74a98cbb4d149a1c09020cf6d1361993b72d7d5b8ffed363/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5052732d77656c636f6d652d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](http://makeapullrequest.com)

> Work with XML structures with ease

### Install

[](#install)

```
composer require sempro/xml
```

### Usage

[](#usage)

```
$xml = new XML;
$xml->fromString($xmlStructure)->toArray();
```

### Credit

[](#credit)

This package is based on [Tamlyn Rhodes article](http://outlandish.com/blog/xml-to-json/)

### License

[](#license)

MIT © [Sempro AS](http://www.sempro.no)

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 71.4% 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 ~234 days

Total

3

Last Release

2928d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/35d9e549ce3a4c7fe0c64aa8664a21f8c97b7291c4ef62533ac578b44c5e3bae?d=identicon)[indentno](/maintainers/indentno)

---

Top Contributors

[![ecrmnn](https://avatars.githubusercontent.com/u/1481696?v=4)](https://github.com/ecrmnn "ecrmnn (5 commits)")[![ventrec](https://avatars.githubusercontent.com/u/701788?v=4)](https://github.com/ventrec "ventrec (2 commits)")

---

Tags

xmlxml-parser

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19139.2M45](/packages/mck89-peast)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9843.5k](/packages/sauladam-shipment-tracker)[moonshine/layouts-field

Field for repeating groups of fields for MoonShine

108.5k](/packages/moonshine-layouts-field)[tcds-io/php-jackson

A lightweight, flexible object serializer for PHP, inspired by FasterXML/jackson

113.2k10](/packages/tcds-io-php-jackson)

PHPackages © 2026

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