定制 cline/json 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

cline/json

Composer 安装命令:

composer require cline/json

包简介

Memory-efficient pull parser for large JSON sources in Laravel and PHP applications.

README 文档

README

GitHub Workflow Status Latest Version on Packagist Software License Total Downloads

json

Memory-efficient pull parser for large JSON sources in Laravel and PHP applications.

Requirements

  • PHP 8.5+

Installation

composer require cline/json

Quick Example

use Cline\Json\JsonParser;

$records = JsonParser::parse(storage_path('app/records.json'))
    ->pointer('/data')
    ->toArray();

Documentation

Supported API Surface

The stable, consumer-facing API is centered on:

  • Cline\Json\JsonParser
  • the parseJson() helper
  • string-based pointer selection through pointer(), pointers(), lazyPointer(), and lazyPointers()
  • decoder customization through Cline\Json\Decoders\Decoder, JsonDecoder, and SimdjsonDecoder
  • package exceptions that implement Cline\Json\Exceptions\JsonParserException

Lazy traversal may yield nested Cline\Json\Tokens\Parser instances. That nested parser type is part of the lazy traversal contract.

Lower-level namespaces such as Concerns\*, ValueObjects\*, Sources\StreamWrapper, Sources\JsonResource, and most token support classes exist for implementation and integration purposes. They are autoloaded, but they are not the primary consumer API this package optimizes around.

Benchmarks

The package ships with throughput and memory benchmarks. See BENCHMARK.md for when to use eager decode, eager parser materialization, and lazy/selective traversal.

Change log

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please use the GitHub security reporting form rather than the issue queue.

Credits

License

The MIT License. Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固