Generate Data Transfer Objects is normaly a hard work. With json2dto, you can easily generate your DTO's by a json file.
# clone this repository
git clone [email protected]:tiagobutzke/json2dto.git
# add in composer.json
"require-dev": {
"tiagobutzke/json2dto": "1.0.*"
}
# Execute json2dto
./json2dto some_file.json some/directory --namespace=SomeNamespace
Namespace is an optional parameter.
Thanks!
;)