Skip to content

19FT/NFArrayToXml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NFArrayToXml

Simple conversion of an array to XML and back again.

This is a wrapper around Lalit Patel's Array2XML & Xml2Array

Installation

Using Composer:

{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/nineteenfeet/NFArrayToXml"
        }
    ],
    "require": {
        "nineteenfeet/nf-array-to-xml": "1.*",
    }
}

Alternatively, install manually.

Usage

Array to XML:

$xml = \NFArrayToXml\ArrayToXml::createXML('root_node_name', $array);
echo $xml->saveXML();

XML to array:

$array = \NFArrayToXml\XmlToArray::createArray($xml);

About

Simple conversion of an array to XML and back again

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages