Download the PHP package giunashvili/xml-parser without Composer
On this page you can find all versions of the php package giunashvili/xml-parser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package xml-parser
XML Parser
XML Parser is a simple php package to parse xml in and out simply and easy.
you could:
- Parse array into xml
- Parse xml into array
Installation
Installation is fairly simple:
Usage
Array into XML
#
XML into Array
#
use Giunashvili\XMLParser\Parse;
$xml =
'<data>'.
'<animals>'.
'<bear>'. 'black'. '</bear>'.
'<fox>'. 'red'. '</fox>'.
'<Kangaroo>'. 'Jack'. '</Kangaroo>'.
'</animals>'.
'<plants>'.
'<item-0>'. 'bamboo'. '</item-0>'.
'<item-1>'. 'bamboo'. '</item-1>'.
'</plangs>'.
'</data>';
$arr = Parse :: xmlAsArray( $xml );
print_r( $arr );
/**
[
'classification' => [
[
'animals' => [
'bear' => 'black',
'fox' => 'red',
'Kangaroo' => 'Jack'
],
'plants' => [
'item-0' => 'bamboo',
'item-1' => 'apple'
]
]
]
]
*/
All versions of xml-parser with dependencies
PHP Build Version
Package Version
No informations.
The package giunashvili/xml-parser contains the following files
Loading the files please wait ....