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(4y ago)04.5k↓31.3%BSD-3-ClausePHPPHP ^5.3 || ^7.0 || ^8.0

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 1mo ago

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 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

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

1780d 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

[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)[jms/serializer-bundle

Allows you to easily serialize, and deserialize data of any complexity

1.8k89.3M627](/packages/jms-serializer-bundle)[hassankhan/config

Lightweight configuration file loader that supports PHP, INI, XML, JSON, and YAML files

97513.5M170](/packages/hassankhan-config)[meyfa/php-svg

Read, edit, write, and render SVG files with PHP

54613.9M42](/packages/meyfa-php-svg)

PHPackages © 2026

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