PHPackages                             hjbdev/php-wordpress-xml-parser - 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. hjbdev/php-wordpress-xml-parser

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

hjbdev/php-wordpress-xml-parser
===============================

Parses the WordPress WXR XML files and returns them in a more usable format.

1.0.0(4y ago)56.7kGPL-2.0-onlyPHPPHP ^7.0|^8.0

Since Jul 14Pushed 4y ago1 watchersCompare

[ Source](https://github.com/hjbdev/php-wordpress-xml-parser)[ Packagist](https://packagist.org/packages/hjbdev/php-wordpress-xml-parser)[ RSS](/packages/hjbdev-php-wordpress-xml-parser/feed)WikiDiscussions main Synced 2d ago

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

php-wordpress-xml-parser
========================

[](#php-wordpress-xml-parser)

Parses WordPress WXR Files and presents them as a nice array.

Usage
-----

[](#usage)

```
    use HJBDev\PHPWordpressXMLParser\Parser;

    $output = Parser::parse(__DIR__. 'path/to/xml/file');
```

This is essentially a framework-agnostic version of the [Wordpress Importer](https://github.com/WordPress/wordpress-importer/blob/master/src/parsers/class-wxr-parser-xml.php) and as such the license has to be GNU GPLv2.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

1815d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/42136c99644c6b8a8ea177aece5eb5120768caf367613394ad3d7d17a01662c6?d=identicon)[hjbdev](/maintainers/hjbdev)

---

Top Contributors

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

---

Tags

parserphpwordpresswxrxml

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/hjbdev-php-wordpress-xml-parser/health.svg)

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

###  Alternatives

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19139.2M47](/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)[jstewmc/rtf

Read and write Rich Text Format (RTF) documents with PHP

45153.1k6](/packages/jstewmc-rtf)[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)
