# 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
[](https://travis-ci.org/thbourlove/easyxml)
[](https://scrutinizer-ci.com/g/thbourlove/easyxml/)
[](https://scrutinizer-ci.com/g/thbourlove/easyxml/?branch=master)
[](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";
```