PHPackages                             zendframework/zend-xml2json - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. zendframework/zend-xml2json

Abandoned → [laminas/laminas-xml2json](/?search=laminas%2Flaminas-xml2json)ArchivedLibrary[Parsing &amp; Serialization](/categories/parsing)

zendframework/zend-xml2json
===========================

Provides functionality for converting XML to JSON, optionally including XML attributes

3.1.2(6y ago)15758.1k↓36.5%9[1 PRs](https://github.com/zendframework/zend-xml2json/pulls)3BSD-3-ClausePHPPHP ^5.6 || ^7.0

Since Mar 31Pushed 6y ago7 watchersCompare

[ Source](https://github.com/zendframework/zend-xml2json)[ Packagist](https://packagist.org/packages/zendframework/zend-xml2json)[ RSS](/packages/zendframework-zend-xml2json/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (4)Dependencies (4)Versions (6)Used By (3)

zend-xml2json
=============

[](#zend-xml2json)

> ## Repository abandoned 2019-12-31
>
> [](#repository-abandoned-2019-12-31)
>
> This repository has moved to [laminas/laminas-xml2json](https://github.com/laminas/laminas-xml2json).

[![Build Status](https://camo.githubusercontent.com/5c4765f83d39b01bf26adad17da33eba03571148feaf3d16ea72b8f40e142c4a/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f7a656e646672616d65776f726b2f7a656e642d786d6c326a736f6e2e7376673f6272616e63683d6d6173746572)](https://secure.travis-ci.org/zendframework/zend-xml2json)[![Coverage Status](https://camo.githubusercontent.com/bf8c535826ec2b6b961f0c2b10cd239b9ffaf5793338aad81481ee8d0250d683/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7a656e646672616d65776f726b2f7a656e642d786d6c326a736f6e2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/zendframework/zend-xml2json?branch=master)

zend-xml2json provides functionality for converting XML structures to JSON.

Installation
------------

[](#installation)

Run the following to install this library:

```
$ composer require zendframework/zend-xml2json
```

Documentation
-------------

[](#documentation)

Browse the documentation online at

Support
-------

[](#support)

- [Issues](https://github.com/zendframework/zend-xml2json/issues/)
- [Chat](https://zendframework-slack.herokuapp.com/)
- [Forum](https://discourse.zendframework.com/)

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity46

Moderate usage in the ecosystem

Community22

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~430 days

Total

4

Last Release

2428d ago

PHP version history (2 changes)3.0.0PHP ^5.5 || ^7.0

3.1.0PHP ^5.6 || ^7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/296074?v=4)[Zend Framework](/maintainers/zendframework)[@zendframework](https://github.com/zendframework)

---

Top Contributors

[![weierophinney](https://avatars.githubusercontent.com/u/25943?v=4)](https://github.com/weierophinney "weierophinney (22 commits)")[![michalbundyra](https://avatars.githubusercontent.com/u/7423207?v=4)](https://github.com/michalbundyra "michalbundyra (18 commits)")[![Koopzington](https://avatars.githubusercontent.com/u/3015529?v=4)](https://github.com/Koopzington "Koopzington (5 commits)")[![samsonasik](https://avatars.githubusercontent.com/u/459648?v=4)](https://github.com/samsonasik "samsonasik (2 commits)")

---

Tags

jsonxmlZendFrameworkzf

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zendframework-zend-xml2json/health.svg)

```
[![Health](https://phpackages.com/badges/zendframework-zend-xml2json/health.svg)](https://phpackages.com/packages/zendframework-zend-xml2json)
```

###  Alternatives

[jms/serializer

Library for (de-)serializing data of any complexity; supports XML, and JSON.

2.3k139.8M905](/packages/jms-serializer)[jms/serializer-bundle

Allows you to easily serialize, and deserialize data of any complexity

1.9k91.4M662](/packages/jms-serializer-bundle)[hassankhan/config

Lightweight configuration file loader that supports PHP, INI, XML, JSON, and YAML files

1.0k13.7M181](/packages/hassankhan-config)[akrabat/rka-content-type-renderer

Render an array to a JSON/XML/HTML PSR-7 Response based on a PSR-7 Request's Accept header.

40458.6k1](/packages/akrabat-rka-content-type-renderer)[laminas/laminas-xml2json

Provides functionality for converting XML to JSON, optionally including XML attributes

14416.6k13](/packages/laminas-laminas-xml2json)[danharper/laravel-jsonx

Add XML support to a JSON-speaking Laravel API with a single middleware via JSONx

1858.7k](/packages/danharper-laravel-jsonx)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
