https://github.com/kelvinmo/simplexrd
An extraordinarily simple XRD parser written in PHP.
https://github.com/kelvinmo/simplexrd
php xrd xrd-parser
Last synced: 4 months ago
JSON representation
An extraordinarily simple XRD parser written in PHP.
- Host: GitHub
- URL: https://github.com/kelvinmo/simplexrd
- Owner: kelvinmo
- License: other
- Created: 2012-06-24T03:01:04.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2022-02-22T07:29:10.000Z (over 3 years ago)
- Last Synced: 2025-03-01T15:03:12.523Z (4 months ago)
- Topics: php, xrd, xrd-parser
- Language: PHP
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: COPYING.txt
Awesome Lists containing this project
README
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
-----Using the parser is straightforward. Assuming the XRD code has been loaded
into a variable called `$xml`. Then the code is simply```php
$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 information for SimpleXRD can be found in the file COPYING.txt.