digitickets/lalit 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

digitickets/lalit

最新稳定版本:3.4.0

Composer 安装命令:

composer require digitickets/lalit

包简介

GitHub copy of LaLit's XML2Array and Array2XML

关键字:

README 文档

README

GitHub Actions Workflow Status GitHub issues

PHP Version Stable Version

Total Downloads Monthly Downloads Daily Downloads

\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 http://www.lalit.org/lab/

XML2Array : http://www.lalit.org/lab/convert-xml-to-array-in-php-xml2array/ Array2XML : http://www.lalit.org/lab/convert-php-array-to-xml-with-attributes/

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

Extended usage

Alternative labelling

As of v3.2.0, the init() method has been expanded to allow the labels used in the output XML2Array::createArray() and the input to Array2XML::createXML() to be changed. Any value, where null is supplied will revert to the default value.

Version History

Please read the CHANGELOG document.

@todo

  1. Add support for <!-- comments --> within the XML, such that when converting from XML -> PHP -> XML, the comments are preserved.

统计信息

  • 总下载量: 1.15M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 72
  • 点击次数: 1
  • 依赖项目数: 13
  • 推荐数: 0

GitHub 信息

  • Stars: 72
  • Watchers: 6
  • Forks: 40
  • 开发语言: PHP

其他信息

  • 授权协议: CC0-1.0
  • 更新时间: 2026-01-04