koriym/json-schema-faker 问题修复 & 功能扩展

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

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

koriym/json-schema-faker

最新稳定版本:0.3.1

Composer 安装命令:

composer require koriym/json-schema-faker

包简介

Generates fake JSON with JSON schema

README 文档

README

Coding Standards Coding Standards

Generates fake JSON with JSON schema.

  • $ref supported
  • CLI command available

forked from leko/json-schema-faker (deprecated)

Getting started

composer require koriym/json-schema-faker

Usage

$schema = json_decode(file_get_contents(__DIR__ . '/schema.json'));
$fake = (new Faker)->generate($schema);

or

// pass SplFileInfo to support local $ref schema file
$fake = (new Faker)->generate(new SplFileInfo(__DIR__ . '/schema.json'));

Command

// convert all json schema jsons in the directory
./vendor/bin/fakejsons {$soruceDir} {$distDir}

统计信息

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

GitHub 信息

  • Stars: 7
  • Watchers: 3
  • Forks: 10
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-04-29