2017 © Pedro Peláez
 

library easyxml

PHP xml library

image

eleme/easyxml

PHP xml library

  • Tuesday, November 18, 2014
  • by thbourlove
  • Repository
  • 16 Watchers
  • 15 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Easyxml

Build Status Scrutinizer Code Quality Code Coverage Stable Status, (*1)

php xml lib., (*2)

Install With Composer:

"require": {
    "eleme/easyxml": "~0.3"
}

Example

array_2_xml(array $array, $structure = '')

$array = array('abc' => array('cba' => 'abc', 'abc' => ''));
echo array_2_xml($array), "\n";
$structure = '<?xml version="1.0" encoding="utf-8"?>';
echo array_2_xml($array, $structure), "\n";

json_2_xml($json, $structure = '')

$json = '{"abc":{"cba":"abc","abc":""}}';
echo json_2_xml($json), "\n";
$structure = '<?xml version="1.0" encoding="utf-8"?>';
echo json_2_xml($json, $structure), "\n";

xml_2_array($xml)

$xml = '<?xml version="1.0"?><abc><cba>abc</cba><abc/></abc>';
echo var_export(xml_2_array($xml)), "\n";

xml_2_json($xml)

$xml = '<?xml version="1.0"?><abc><cba>abc</cba><abc/></abc>';
echo xml_2_json($xml), "\n";

The Versions

18/11 2014

dev-master

9999999-dev

PHP xml library

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Hongbo Tang

18/11 2014

v0.3.0

0.3.0.0

PHP xml library

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Hongbo Tang

20/08 2014

v0.2.0

0.2.0.0

PHP xml library

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Hongbo Tang

08/08 2014

v0.1.0

0.1.0.0

PHP xml library

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Hongbo Tang

08/08 2014

v0.0.1

0.0.1.0

PHP xml library

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

by Hongbo Tang