Skip to content

khgtrn/php-data-transformer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirement

  • 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"
        }
      }
    ]
  }
]

About

Transfer data between multiple applications

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages