Json 2 DTO generates spatie/data-transfer-object
objects automatically from json snippets.
Your DTOs then allow you statically type check code that interacts with them.
A Zip file containing the DTOs will be generated
See this issue for information
{ "id": 45, "name": "hello world", "price": 44.5, "enabled": true}xxxxxxxxxx<?phpnamespace App\DTO;use Spatie\DataTransferObject\DataTransferObject;class JsonDataTransferObject extends DataTransferObject{ /** @var int $id */ public $id; /** @var string $name */ public $name; /** @var float $price */ public $price; /** @var bool $enabled */ public $enabled;}