定制 kupodigital/ldjson 二次开发

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

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

kupodigital/ldjson

Composer 安装命令:

composer require kupodigital/ldjson

包简介

LightweightDataJson - A lightweight utility for encoding and decoding data in the .ld-json format.

README 文档

README

Purpose

The Lightweight Data Json (LD-JSON) format was developed with the aim of providing a lighter alternative to the conventional JSON format. It seeks to address the issue of key repetition in each object, making the data structure more compact and storage-efficient. By eliminating the need to repeat keys in each object, LD-JSON is especially suitable for scenarios where space-saving is crucial.

Usage

The LD-JSON format can be used similarly to CSV or TSV files, with the added advantage of including a header that indicates the type of each value present in the objects. This facilitates data interpretation and helps ensure data integrity.

The basic syntax of LD-JSON involves a header that defines data types, followed by data objects, each representing a set of related values. Data types are indicated in the header after the ":" symbol.

Examples

Here are examples of data before and after being encoded in the LD-JSON format:

Original Data

$data = [
  [
    "name" => "Asana", 
    "type" => "productivity", 
    "url" => "https://developers.asana.com/docs", 
    "price" => 0,
    "authentication" => "oauth"
  ],
  [
    "name" => "ClickUp", 
    "type" => "productivity", 
    "url" => "https://clickup.com/api/", 
    "price" => 0, 
    "authentication" => "oauth"
  ],
  [
    "name" => "Atlassian", 
    "type" => "productivity", 
    "url" => "https://developer.atlassian.com/server/jira/platform/rest-apis/", 
    "price" => 0, 
    "authentication" => "oauth;basic"
  ],
  ...
];

Data Encoded in LD-JSON

{	name:string	type:string	url:string	price:integer	authentication:string	}
{	Asana	productivity	https://developers.asana.com/docs	0	oauth	}
{	ClickUp	productivity	https://clickup.com/api/	0	oauth	}
{	Atlassian	productivity	https://developer.atlassian.com/server/jira/platform/rest-apis/	0	oauth;basic	}
...

We hope that LD-JSON proves to be useful for your data storage and transfer needs in an efficient manner. Feel free to contribute, modify, and use as per your specific requirements.

License

This format follows the terms of the MIT License. The MIT License is permissive and allows for use, modification, and redistribution of the software, subject to certain conditions. It's important to note that the license includes a disclaimer, stating that the software is provided "as is," without warranties of any kind. Furthermore, the license limits the liability of the author or copyright holder for any damages arising from the use of the software.

This project is licensed under the MIT License - see the LICENSE file for details.

Please feel free to customize and adjust the content as needed to meet your specifications. Also, make sure to add the corresponding LICENSE file to your repository.

kupodigital/ldjson 适用场景与选型建议

kupodigital/ldjson 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 27 次下载、GitHub Stars 达 2, 最近一次更新时间为 2023 年 08 月 04 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 kupodigital/ldjson 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 kupodigital/ldjson 我们能提供哪些服务?
定制开发 / 二次开发

基于 kupodigital/ldjson 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-08-04