# easyxml **Repository Path**: mirrors_eleme/easyxml ## Basic Information - **Project Name**: easyxml - **Description**: php xml lib - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-05-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Easyxml [![Build Status](https://travis-ci.org/thbourlove/easyxml.png?branch=master)](https://travis-ci.org/thbourlove/easyxml) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/thbourlove/easyxml/badges/quality-score.png?s=f113f1ab965f6aaef55e497a330caf72bff94201)](https://scrutinizer-ci.com/g/thbourlove/easyxml/) [![Code Coverage](https://scrutinizer-ci.com/g/thbourlove/easyxml/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/thbourlove/easyxml/?branch=master) [![Stable Status](https://poser.pugx.org/eleme/easyxml/v/stable.png)](https://packagist.org/packages/eleme/easyxml) php xml lib. ## Install With Composer: ```json "require": { "eleme/easyxml": "~0.3" } ``` ## Example #### array_2_xml(array $array, $structure = '') ```php $array = array('abc' => array('cba' => 'abc', 'abc' => '')); echo array_2_xml($array), "\n"; $structure = ''; echo array_2_xml($array, $structure), "\n"; ``` #### json_2_xml($json, $structure = '') ```php $json = '{"abc":{"cba":"abc","abc":""}}'; echo json_2_xml($json), "\n"; $structure = ''; echo json_2_xml($json, $structure), "\n"; ``` #### xml_2_array($xml) ```php $xml = 'abc'; echo var_export(xml_2_array($xml)), "\n"; ``` #### xml_2_json($xml) ```php $xml = 'abc'; echo xml_2_json($xml), "\n"; ```