Skip to content

Commit b55e0b7

Browse files
committed
updated readme and composer def
1 parent 3bd0134 commit b55e0b7

2 files changed

Lines changed: 50 additions & 1 deletion

File tree

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,25 @@
11
lib-array2xml
22
=============
33

4-
Array2XML conversion library credit to lalit.org
4+
Array2XML conversion library credit to lalit.org
5+
6+
Usage
7+
----
8+
```php
9+
ld('array2xml');
10+
11+
//create XML
12+
$xml = Array2XML::createXML('root_node_name', $php_array);
13+
echo $xml->saveXML();
14+
15+
//create Array
16+
$array = XML2Array::createArray($xml);
17+
print_r($array);
18+
```
19+
20+
Reference
21+
----
22+
More complete references can be found here
23+
http://www.lalit.org/lab/convert-xml-to-array-in-php-xml2array/
24+
http://www.lalit.org/lab/convert-php-array-to-xml-with-attributes/
25+

composer.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "openlss/lib-array2xml"
3+
,"homepage": "http://openlss.org"
4+
,"description": "Array2XML conversion library credit to lalit.org"
5+
,"license": "Apache-2.0"
6+
,"type": "library"
7+
,"keywords": [
8+
"array"
9+
,"xml"
10+
,"xml conversion"
11+
,"array conversion"
12+
]
13+
,"authors": [
14+
{
15+
"name": "Bryan Tong"
16+
,"email": "contact@nullivex.com"
17+
,"homepage": "http://bryantong.com"
18+
}
19+
,{
20+
"name": "Tony Butler"
21+
,"email": "spudz76@gmail.com"
22+
,"homepage": "http://openlss.org"
23+
}
24+
]
25+
,"require": {
26+
"php": ">=5.3.2"
27+
}
28+
}

0 commit comments

Comments
 (0)