{"id":28619636,"url":"https://github.com/eleme/easyxml","last_synced_at":"2025-06-12T04:40:53.484Z","repository":{"id":19495457,"uuid":"22741638","full_name":"eleme/easyxml","owner":"eleme","description":"php xml lib","archived":false,"fork":false,"pushed_at":"2014-11-20T09:01:37.000Z","size":232,"stargazers_count":17,"open_issues_count":0,"forks_count":0,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-05-03T16:17:47.924Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://eleme.github.io/easyxml","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eleme.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-08T01:11:19.000Z","updated_at":"2020-05-02T14:20:03.000Z","dependencies_parsed_at":"2022-08-21T10:20:57.731Z","dependency_job_id":null,"html_url":"https://github.com/eleme/easyxml","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/eleme/easyxml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eleme%2Feasyxml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eleme%2Feasyxml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eleme%2Feasyxml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eleme%2Feasyxml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eleme","download_url":"https://codeload.github.com/eleme/easyxml/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eleme%2Feasyxml/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259400459,"owners_count":22851816,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-12T04:40:50.818Z","updated_at":"2025-06-12T04:40:53.467Z","avatar_url":"https://github.com/eleme.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Easyxml\n[![Build Status](https://travis-ci.org/thbourlove/easyxml.png?branch=master)](https://travis-ci.org/thbourlove/easyxml)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/thbourlove/easyxml/badges/quality-score.png?s=f113f1ab965f6aaef55e497a330caf72bff94201)](https://scrutinizer-ci.com/g/thbourlove/easyxml/)\n[![Code Coverage](https://scrutinizer-ci.com/g/thbourlove/easyxml/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/thbourlove/easyxml/?branch=master)\n[![Stable Status](https://poser.pugx.org/eleme/easyxml/v/stable.png)](https://packagist.org/packages/eleme/easyxml)\n\nphp xml lib.\n\n## Install With Composer:\n\n```json\n\"require\": {\n    \"eleme/easyxml\": \"~0.3\"\n}\n```\n\n## Example\n\n#### array_2_xml(array $array, $structure = '')\n```php\n$array = array('abc' =\u003e array('cba' =\u003e 'abc', 'abc' =\u003e ''));\necho array_2_xml($array), \"\\n\";\n$structure = '\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e';\necho array_2_xml($array, $structure), \"\\n\";\n```\n\n#### json_2_xml($json, $structure = '')\n```php\n$json = '{\"abc\":{\"cba\":\"abc\",\"abc\":\"\"}}';\necho json_2_xml($json), \"\\n\";\n$structure = '\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e';\necho json_2_xml($json, $structure), \"\\n\";\n```\n\n#### xml_2_array($xml)\n```php\n$xml = '\u003c?xml version=\"1.0\"?\u003e\u003cabc\u003e\u003ccba\u003eabc\u003c/cba\u003e\u003cabc/\u003e\u003c/abc\u003e';\necho var_export(xml_2_array($xml)), \"\\n\";\n```\n\n#### xml_2_json($xml)\n```php\n$xml = '\u003c?xml version=\"1.0\"?\u003e\u003cabc\u003e\u003ccba\u003eabc\u003c/cba\u003e\u003cabc/\u003e\u003c/abc\u003e';\necho xml_2_json($xml), \"\\n\";\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feleme%2Feasyxml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feleme%2Feasyxml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feleme%2Feasyxml/lists"}