About
Commands and libraries that generate PHP classes that can be acquired from JSONschema with json_encode().
Generate command
./vendor/bin/jsm map [jsonDir] [phpDir] [namespace] [templatePath]
example
./vendor/bin/jsm map sample/json sample/generated Json
Source JSON Schema directory
sample/json/
├ neta.json
├ osakanaType.json
├ shari.json
└ sushi.json
Generated PHP class directory
sample/generated/
├ Neta/
│ ├ Neta.php
│ ├ NetaInterface.php
│ └ NetaTrait.php
├ Shari/
│ ├ Shari.php
│ ├ ShariInterface.php
│ └ ShariTrait.php
├ Sushi/
│ ├ Sushi.php
│ ├ SushiInterface.php
│ └ SushiTrait.php
└ OsakanaType.php