kelvinmo/simplexrd
An extraordinarily simple XRD parser written in PHP.
Maintainers
v3.2.1
2021-07-04 03:22 UTC
Requires
- php: ^5.3 || ^7.0 || ^8.0
- ext-xmlreader: *
Requires (Dev)
- phpunit/phpunit: ^4.8.35 || ^6.0 || ^9.3
Suggests
None
Provides
None
Conflicts
None
Replaces
None
BSD-3-Clause 1a223f8aff617d80ee5566f894664f8ace0ee1fd
- Kelvin Mo <kmo.woop@users.sourceforge.net>
README
SimpleXRD is an extraordinarily simple parser for XRD documents written in PHP 5.
This XRD parser supports all the features of XRD which can be translated into its JSON representation under RFC 6415. 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
$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.
