承接 suramon/simple-xml-reader 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

suramon/simple-xml-reader

Composer 安装命令:

composer require suramon/simple-xml-reader

包简介

The power of SimpleXmlElement, combined with the resource-friendliness of XmlReader

README 文档

README

Interface for the PHP XML Pull parser XMLReader that adds super-simplified xpath functionality. This is ideal for reading huge xml files without the memory costs of other xml libraries (eg SImpleXMLElement).

Build Status Build Status

Example

source code: https://github.com/SuRaMoN/simplexmlreader/blob/master/examples/simple-example.php

$xml = SimpleXmlReader::openFromString('
	 <root>
		<animal type="cat">
			<hastail>yes</hastail>
		</animal>
		<animal type="dog">
			<hastail>yes</hastail>
		</animal>
		<animal type="kakariki">
			<hastail>no</hastail>
		</animal>
	</root>
');

foreach($xml->path('root/animal') as $animal) {
	// $animal is of type SimpleXMLElelent
	// only the current iterated $animal is in memory, so huge xml files can be read, without much memory consumption
	echo "A {$animal->attributes()->type} has a tail? {$animal->hastail}!\n";
} 

统计信息

  • 总下载量: 109.05k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 8
  • 点击次数: 15
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 8
  • Watchers: 1
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: DO
  • 更新时间: 2014-05-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固