koriym/json-schema-faker
最新稳定版本:0.3.1
Composer 安装命令:
composer require koriym/json-schema-faker
包简介
Generates fake JSON with JSON schema
README 文档
README
Generates fake JSON with JSON schema.
$refsupported- 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
其他信息
- 授权协议: MIT
- 更新时间: 2019-04-29