PHP code example of coretsia / core-dto-attribute
1. Go to this page and download the library: Download coretsia/core-dto-attribute 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/ */
coretsia / core-dto-attribute example snippets
#[Coretsia\Dto\Attribute\Dto]
declare(strict_types=1);
namespace Acme\App\Api;
use Coretsia\Dto\Attribute\Dto;
#[Dto]
final readonly class CreateUserRequest
{
public function __construct(
public string $email,
public string $displayName,
) {
}
}
text
docs/ssot/dto-policy.md