janeklb/json-char-input-reader 问题修复 & 功能扩展

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

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

janeklb/json-char-input-reader

最新稳定版本:v0.3.2

Composer 安装命令:

composer require janeklb/json-char-input-reader

包简介

Read a JSON stream and execute callbacks whenever complete JSON chunks are parsed

README 文档

README

This is a stream reader used to process JSON data character-by-character and execute callbacks after parsing complete chunks.

The data stream must be in the form of a JSON array. ie. [1, 2, [3, 4], {"five": "six"}, ...

Example

To get a feel for it, run the following in your terminal:

$ cat | php example/example.php

[Terminate with CTRL^D or CTRL^C]

Testing

Install composer with dev dependencies composer install --dev and run

$ ./vendor/bin/phpunit test/

Todo

  • fire callbacks on deeper nested values, rather than "top level" entries in the stream array

License

Distributed under the MIT Licence

统计信息

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

GitHub 信息

  • Stars: 24
  • Watchers: 1
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-03-16