Utility
Composer: composer require asmpkg/utility
, (*1)
PortuguĂȘs
Manipulação de XML para PHP
, (*2)
A biblioteca XML faz a conversĂŁo de XML para Array, de Array para XML.
, (*3)
A documentacao completa sobre como utilizar a biblioteca XML: http://book.cakephp.org/3.0/en/core-libraries/xml.html
, (*4)
Importing Data to XML Class
, (*5)
$text = '
1
Best post
...
';
$xml = Xml::build($text);, (*6)
Local file
$xml = Xml::build('/home/awesome/unicorns.xml');, (*7)
$data = [
'post' => [
'id' => 1,
'title' => 'Best post',
'body' => ' ... '
]
];
$xml = Xml::build($data);
Importante: Esta class foi copiada da biblioteca Utility do framework Cakephp
English
XML handling for PHP
The XML library converts XML to Array, Array to XML.
Full documentation on how to use the XML library: http://book.cakephp.org/3.0/en/core-libraries/xml.html
Importing Data to Xml Class
$text = '
1
Best post
...
';
$xml = Xml::build($text);
, (*8)
Local file
$xml = Xml::build('/home/awesome/unicorns.xml');, (*9)
$data = [
'post' => [
'id' => 1,
'title' => 'Best post',
'body' => ' ... '
]
];
$xml = Xml::build($data);
Important: This class was copied from the Utility Library Cakephp framework
, (*10)