flux-eco/json-schema-document 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

flux-eco/json-schema-document

Composer 安装命令:

composer require flux-eco/json-schema-document

包简介

Component for flux-capacitor apps developed by fluxlabs

README 文档

README

This component is supposed to make a json document more readable by providing methods for reading certain elements via php.

help and support with the development very welcome :-)

https://json-schema.org/specification.html

The following example application demonstrates the usage: https://github.com/flux-caps/todo-app

Functional Usage

account.yaml

title: account
type: object
aggregateRootNames:
    - account
properties:
  personId:
    type: integer
  firstname:
    type: string
  lastname:
    type: string
  email:
    type: string
  type:
    type: string
  lastChanged:
    type: string

getAndPrintSchemaDocument.php

$schemaDocument = fluxJsonSchemaDocument\getSchemaDocument('account.yaml');
print_r($schemaDocument);

outputs:

Array
FluxEco\JsonSchemaDocument\SchemaDocument Object
(
    [schemaDocument:FluxEco\JsonSchemaDocument\SchemaDocument:private] => FluxEco\JsonSchemaDocument\Core\Domain\SchemaDocument Object
        (
            [title:FluxEco\JsonSchemaDocument\Core\Domain\SchemaDocument:private] => account
            [properties:FluxEco\JsonSchemaDocument\Core\Domain\SchemaDocument:private] => Array
                (
                    [personId] => FluxEco\JsonSchemaDocument\Core\Domain\Models\SchemaObject Object
                        (
                            [key:FluxEco\JsonSchemaDocument\Core\Domain\Models\SchemaObject:private] => personId
                            [type:FluxEco\JsonSchemaDocument\Core\Domain\Models\SchemaObject:private] => integer
                        )

                    [firstname] => FluxEco\JsonSchemaDocument\Core\Domain\Models\SchemaObject Object
                        (
                            [key:FluxEco\JsonSchemaDocument\Core\Domain\Models\SchemaObject:private] => firstname
                            [type:FluxEco\JsonSchemaDocument\Core\Domain\Models\SchemaObject:private] => string
                        )

                    [lastname] => FluxEco\JsonSchemaDocument\Core\Domain\Models\SchemaObject Object
                        (
                            [key:FluxEco\JsonSchemaDocument\Core\Domain\Models\SchemaObject:private] => lastname
                            [type:FluxEco\JsonSchemaDocument\Core\Domain\Models\SchemaObject:private] => string
                        )

                    [email] => FluxEco\JsonSchemaDocument\Core\Domain\Models\SchemaObject Object
                        (
                            [key:FluxEco\JsonSchemaDocument\Core\Domain\Models\SchemaObject:private] => email
                            [type:FluxEco\JsonSchemaDocument\Core\Domain\Models\SchemaObject:private] => string
                        )

                    [type] => FluxEco\JsonSchemaDocument\Core\Domain\Models\SchemaObject Object
                        (
                            [key:FluxEco\JsonSchemaDocument\Core\Domain\Models\SchemaObject:private] => type
                            [type:FluxEco\JsonSchemaDocument\Core\Domain\Models\SchemaObject:private] => string
                        )

                    [lastChanged] => FluxEco\JsonSchemaDocument\Core\Domain\Models\SchemaObject Object
                        (
                            [key:FluxEco\JsonSchemaDocument\Core\Domain\Models\SchemaObject:private] => lastChanged
                            [type:FluxEco\JsonSchemaDocument\Core\Domain\Models\SchemaObject:private] => string
                        )

                )

        )

)

Contributing 💜

Please ...

  1. ... register an account at https://git.fluxlabs.ch
  2. ... create pull requests 🔥

Adjustment suggestions / bug reporting 🐾

Please ...

  1. ... register an account at https://git.fluxlabs.ch
  2. ... ask us for a Service Level Agreement: support@fluxlabs.ch 😘
  3. ... read and create issues

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-only
  • 更新时间: 2022-03-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固