eva/dto-creator

dev-main 2023-10-18 13:05 UTC

This package is auto-updated.

Last update: 2024-09-29 23:11:41 UTC


README

php ./bin/console app:dto-creator --sourcePath='config/packages/dto' --baseNamespace='App' --baseDir='src'

Created dto

schema_example.yaml

- namespace: App\Dto
  class: MyDto
  properties:
    propertyInt: int
    propertyString: string
    propertyArray: array

baseNamespace option transform App to baseDir (src) so target file path will be src/Dto/MyDto.php