johnkzn / array_to_xml
Convert php array to xml document
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/johnkzn/array_to_xml
Requires
- php: >=5.4
- ext-libxml: *
This package is not auto-updated.
Last update: 2025-12-21 10:16:14 UTC
README
Install
"johnkzn/array_to_xml": "*"
Then do composer install.
Usage
$xml = new arrayToXml(); $array = [ [ 'tag' => 'root', 'elements' => [ [ 'tag' => 'tag_1', 'attributes' => [ 'attr_1' => 'val_1' ], 'content' => 'content_1', ], [ 'tag' => 'tag_2', 'content' => 'content_2', ] ], ], ]; echo $xml->load($in)->out();