markwilson/xml-to-json

This package is abandoned and no longer maintained. No replacement package was suggested.

0.1.4 2015-04-08 07:52 UTC

This package is not auto-updated.

Last update: 2021-01-23 09:27:19 UTC


README

Basic XML to JSON conversion.

Usage:-

<?php

use MarkWilson\XmlToJson\XmlToJsonConverter;

$xml = new \SimpleXMLElement('<Element>Value</Element>');

$converter = new XmlToJsonConverter();
$json = $converter->convert($xml);