PHPackages                             kelvinmo/simplexrd - 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. kelvinmo/simplexrd

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

kelvinmo/simplexrd
==================

An extraordinarily simple XRD parser written in PHP.

v3.2.1(5y ago)04.8k↓67.1%1BSD-3-ClausePHPPHP ^5.3 || ^7.0 || ^8.0CI failing

Since Nov 15Pushed 4y ago1 watchersCompare

[ Source](https://github.com/kelvinmo/simplexrd)[ Packagist](https://packagist.org/packages/kelvinmo/simplexrd)[ RSS](/packages/kelvinmo-simplexrd/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (7)Used By (0)Security (1)

simplexrd
=========

[](#simplexrd)

SimpleXRD is an extraordinarily simple parser for [XRD documents](http://docs.oasis-open.org/xri/xrd/v1.0/xrd-1.0.html) written in PHP 5.

This XRD parser supports all the features of XRD which can be translated into its JSON representation under [RFC 6415](http://tools.ietf.org/html/rfc6415). This means that the parser does not support extensibility under the XRD specification.

Usage
-----

[](#usage)

Using the parser is straightforward. Assuming the XRD code has been loaded into a variable called `$xml`. Then the code is simply

```
$parser = new SimpleXRD();
$parser->load($xml);
$jrd = $parser->parse();
$parser->free();
```

The JSON representation can then be obtained by using `json_encode($jrd)`.

Licensing
---------

[](#licensing)

Licensing information for SimpleXRD can be found in the file COPYING.txt.

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity72

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

Recently: every ~568 days

Total

6

Last Release

1825d ago

Major Versions

v2.2 → v3.02015-04-14

PHP version history (3 changes)v2.2PHP &gt;=5.3.0

v3.2PHP ^5.3 | ^7.0

v3.2.1PHP ^5.3 || ^7.0 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/467c1767396cee916f7dfb3a04f0dcef1714b72940a27fee0b58f96a8aa3b608?d=identicon)[kelvinmo](/maintainers/kelvinmo)

---

Top Contributors

[![kelvinmo](https://avatars.githubusercontent.com/u/1594601?v=4)](https://github.com/kelvinmo "kelvinmo (31 commits)")

---

Tags

phpxrdxrd-parser

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kelvinmo-simplexrd/health.svg)

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

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