PHPackages                             tochka-developers/lalit - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. tochka-developers/lalit

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tochka-developers/lalit
=======================

GitHub copy of LaLit's XML2Array and Array2XML

3.0.3(8y ago)08.0kApache License 2.0PHPPHP &gt;=7

Since Apr 29Pushed 8y ago2 watchersCompare

[ Source](https://github.com/tochka-developers/lalit)[ Packagist](https://packagist.org/packages/tochka-developers/lalit)[ Docs](http://www.lalit.org/lab)[ RSS](/packages/tochka-developers-lalit/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (2)Versions (16)Used By (0)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/404673f05d69cae47c4b77caec2ef5c222a5ef5b7d3752ac04f7b6d24c85ea85/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f646967697469636b6574732f6c616c69742e7376673f7374796c653d706c6173746963)](https://scrutinizer-ci.com/g/digitickets/lalit/?branch=master)[![Scrutinizer Coverage](https://camo.githubusercontent.com/8911849af7a65ced364b77c7fe7c1ca5574af527ee430bfea0d4f82d0de96386/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f646967697469636b6574732f6c616c69742e7376673f7374796c653d706c6173746963)](https://scrutinizer-ci.com/coverage/g/digitickets/lalit/?branch=master)[![Scrutinizer Build Status](https://camo.githubusercontent.com/47da6b6170b56eaaf6aad246f153d7ed953abd1b17b2e174dbfaa36e0dd35c07/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f646967697469636b6574732f6c616c69742e7376673f7374796c653d706c6173746963)](https://scrutinizer-ci.com/build/g/digitickets/lalit/?branch=master)[![Travid Build Status](https://camo.githubusercontent.com/daba351f9d5f1d733d3a95e51773fe10adf98c73b8a87cffff714b2582793196/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f646967697469636b6574732f6c616c69742e7376673f7374796c653d706c6173746963)](https://travis-ci.org/digitickets/lalit)[![Latest Stable Version](https://camo.githubusercontent.com/c4d51f6331c66ab697dd487af3151cd8d8341e1b1bfd0814423076b760421081/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646967697469636b6574732f6c616c69742e7376673f7374796c653d706c6173746963)](https://packagist.org/packages/digitickets/lalit)[![Packagist](https://camo.githubusercontent.com/64e0bb7e7890ddeafb514c2c89eb5d7e6082114dacc63b023c6654c129ae3ab3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646967697469636b6574732f6c616c69742e7376673f7374796c653d706c6173746963)](https://packagist.org/packages/digitickets/lalit)

LaLit's XML2Array / Array2XML
=============================

[](#lalits-xml2array--array2xml)

`\digitickets\LaLit` allows you to convert XML to a PHP array and back again.

The base code was developed by Lalit Patel and is available from

XML2Array : Array2XML :

I've added additional unit tests via a generator (so probably too many tests)

Version History
===============

[](#version-history)

Please read the [CHANGELOG](CHANGELOG.md) document.

@todo
=====

[](#todo)

1. Add support for `` within the XML, such that when converting from XML -&gt; PHP -&gt; XML, the comments are preserved.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 85.7% of commits — single point of failure

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 ~61 days

Recently: every ~73 days

Total

15

Last Release

3171d ago

Major Versions

1.6.3 → 2.0.02016-11-17

2.0.0 → 3.0.02017-02-09

### Community

Maintainers

![](https://www.gravatar.com/avatar/d5ec14fdcb7d670c749bdfe547cdcae4dd77a1eb173f01c6787217c8ef90b1d5?d=identicon)[tochka-developers](/maintainers/tochka-developers)

![](https://www.gravatar.com/avatar/dc33cf2a905842e2b7b452bb04d75ba24943d1c22fcffa8aa393d04c0ba20f3c?d=identicon)[darkdarin](/maintainers/darkdarin)

---

Top Contributors

[![rquadling](https://avatars.githubusercontent.com/u/12801?v=4)](https://github.com/rquadling "rquadling (24 commits)")[![lexxksb](https://avatars.githubusercontent.com/u/622791?v=4)](https://github.com/lexxksb "lexxksb (3 commits)")[![mwinandy](https://avatars.githubusercontent.com/u/1233357?v=4)](https://github.com/mwinandy "mwinandy (1 commits)")

---

Tags

xmlarray

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tochka-developers-lalit/health.svg)

```
[![Health](https://phpackages.com/badges/tochka-developers-lalit/health.svg)](https://phpackages.com/packages/tochka-developers-lalit)
```

###  Alternatives

[openlss/lib-array2xml

Array2XML conversion library credit to lalit.org

31052.5M47](/packages/openlss-lib-array2xml)[digitickets/lalit

GitHub copy of LaLit's XML2Array and Array2XML

721.3M6](/packages/digitickets-lalit)[hiraku/xml_builder

Simple DSL for building XML

141.6k1](/packages/hiraku-xml-builder)

PHPackages © 2026

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