定制 wookieb/zorro-data-schema 二次开发

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

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

wookieb/zorro-data-schema

Composer 安装命令:

composer require wookieb/zorro-data-schema

包简介

Tool to convert objects to arrays and vice versa according to data schema

README 文档

README

Build Status Tool to convert objects to arrays and vice versa according to data schema

Use cases

  • Retrieving and sending data to many environments
  • REST API
  • Serialization layer for json and other formats

Example

Just run

php example/test.php

Example result

Raw data
Array
(
    [name] => Łukasz
    [registrationDate] => 1123818123
    [status] => ACTIVE
    [addresses] => Array
        (
            [0] => Array
                (
                    [street] => Sportowa
                    [city] => Gdynia
                )

            [1] => Array
                (
                    [street] => Zamkowa
                    [city] => Gdańsk
                )

        )

)

Transformed to "User" type:
User Object
(
    [name:User:private] => Łukasz
    [registrationDate:User:private] => DateTime Object
        (
            [date] => 2005-08-12 03:42:03
            [timezone_type] => 1
            [timezone] => +00:00
        )

    [status:User:private] => 1
    [addresses:User:private] => Array
        (
            [0] => Address Object
                (
                    [street:Address:private] => Sportowa
                    [city:Address:private] => Gdynia
                )

            [1] => Address Object
                (
                    [street:Address:private] => Zamkowa
                    [city:Address:private] => Gdańsk
                )

        )

)

Extracted data from object of "User" type:
Array
(
    [name] => Łukasz
    [registrationDate] => 2005-08-12T03:42:03+0000
    [status] => ACTIVE
    [addresses] => Array
        (
            [0] => Array
                (
                    [street] => Sportowa
                    [city] => Gdynia
                )

            [1] => Array
                (
                    [street] => Zamkowa
                    [city] => Gdańsk
                )

        )

)

Documentation

see documentation

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-08-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固