1. Go to this page and download the library: Download klkvsk/dto-generator library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
klkvsk / dto-generator example snippets
use Klkvsk\DtoGenerator\Schema as dto;
use Klkvsk\DtoGenerator\Schema\Types as t;
return dto\schema(
namespace: 'MyProject\Data',
objects: [
new dto\object(
name: 'Person',
fields: [
dto\field('name', t\string(),