承接 tranquangkhuong/data-transformer 相关项目开发

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

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

tranquangkhuong/data-transformer

最新稳定版本:v1.0.5

Composer 安装命令:

composer require tranquangkhuong/data-transformer

包简介

A package to transform data between applications based on JSON configuration.

README 文档

README

  • PHP ext: mbstring

Configuration key/value list

Key name Data type Value
key string
type string string date
required boolean true false
format string date format. Eg: d/m/Y Y/m/d ...
default string, number
case string, array<[string]>
group_value string merge split
group_value_position number

__[children] contains multi config


Example

[
  {
    "app1": {
      "key": "username",
      "type": "string",
      "case": "send"
    },
    "app2": {
      "key": "user_name",
      "type": "string",
      "case": [
        "send",
        "result"
      ]
    }
  },
  {
    "app1": {
      "key": "user_gender",
      "type": "string",
      "case": "send"
    },
    "app2": {
      "key": "user.gender",
      "type": "string",
      "case": [
        "send",
        "result"
      ]
    }
  },
  {
    "app1": {
      "key": "info",
      "type": "list",
      "case": "send"
    },
    "app2": {
      "key": "infomation",
      "type": "list",
      "case": [
        "send",
        "result"
      ]
    },
    "__[children]": [
      {
        "app1": {
          "key": "name",
          "type": "string",
          "case": "send"
        },
        "motcua": {
          "key": "fullname",
          "type": "string",
          "case": "send"
        }
      }
    ]
  }
]

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-03-22