v1.0.0 — First public release
Description
First public release of json-to-xml, a PHP library for converting
JSON to XML and back, with support for attributes, automatic CDATA,
and mixed content.
Key Features
- JSON → XML conversion (
JsonToXmlConverter) - XML → JSON conversion (
XmlToJsonConverter) - Attributes via the
@prefix - Direct text / mixed content via the
#textkey - Repeated lists without an intermediate wrapper
- Automatic CDATA based on content
- Protection against XXE attacks (LIBXML_NONET)
forceArrayTagsto preserve the "list" shape in the XML → JSON round-trip
Requirements
- PHP >= 8.1
domandjsonextensions
Installation
composer require a35g/json-to-xmlDocumentation
Full user guide available in the Wiki.