asmpkg/utility

The XML library converts XML to Array, Array to XML.

1.0.2 2015-10-04 18:50 UTC

This package is not auto-updated.

Last update: 2025-01-04 20:14:51 UTC


README

Composer: composer require asmpkg/utility

Português
Manipulação de XML para PHP

A biblioteca XML faz a conversão de XML para Array, de Array para XML.

A documentacao completa sobre como utilizar a biblioteca XML: http://book.cakephp.org/3.0/en/core-libraries/xml.html

Importing Data to XML Class

$text = ' 1 <title>Best post</title> ... '; $xml = Xml::build($text);

Local file
$xml = Xml::build('/home/awesome/unicorns.xml');

$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 <title>Best post</title> ... ';
$xml = Xml::build($text);

Local file
$xml = Xml::build('/home/awesome/unicorns.xml');

$data = [ 'post' => [ 'id' => 1, 'title' => 'Best post', 'body' => ' ... ' ] ];
$xml = Xml::build($data);

Important: This class was copied from the Utility Library Cakephp framework