prewk/xml-string-streamer-guzzle 问题修复 & 功能扩展

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

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

prewk/xml-string-streamer-guzzle

最新稳定版本:1.2.1

Composer 安装命令:

composer require prewk/xml-string-streamer-guzzle

包简介

Stream provider for Guzzle for use with xml-string-streamer

README 文档

README

Use with xml-string-streamer

What is it?

Streams large XML files with low memory consumption, over HTTP using Guzzle.

Installing

Run composer require prewk/xml-string-streamer-guzzle to install this package.

Examples

use Prewk\XmlStringStreamer;
use Prewk\XmlStringStreamer\Stream;
use Prewk\XmlStringStreamer\Parser;

$url = "http://example.com/really-large-xml-file.xml";

$CHUNK_SIZE = 1024;
$stream = new Stream\Guzzle($url, $CHUNK_SIZE);
$parser = new Parser\StringWalker();

$streamer = new XmlStringStreamer($parser, $stream);

while ($node = $streamer->getNode()) {
	// ...
}

For more info, see the xml-string-streamer repo.

Compatibility

  • For PHP >= 5.5 with Guzzle 6 compatibility, use version 0.4.0
  • For PHP >= 7.2 with Guzzle 7 compatibility, use latest (1.0.0 and onwards)

统计信息

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

GitHub 信息

  • Stars: 16
  • Watchers: 1
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-05-01