1. Go to this page and download the library: Download shworx/beacon 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/ */
// app/DTO/LoginDto.php
namespace App\DTO;
use Symfony\Component\Validator\Constraints as Assert;
final readonly class LoginDto
{
public function __construct(
#[Assert\NotBlank]
#[Assert\Email]
public string $email,
#[Assert\NotBlank]
public string $password,
) {}
}