Is a library that provides a flexible and easy way to create and validate fields for web forms, models, and other data structures.
<?php
declare(strict_types=1);
namespace App\FormModel;
use UIAwesome\FormModel\AbstractFormModel;
final class User extends AbstractFormModel
{
private string $username = '';
public function getHints(): array
{
return [
'username' => 'The hint for the field.',
];
}
public function getLabels(): array
{
return [
'username' => 'The label for the field.',
];
}
public function getPlaceholders(): array
{
return [
'username' => 'The placeholder for the field.',
];
}
}
The preferred way to install this extension is through composer.
Either run
composer require --prefer-dist ui-awesome/form-model:"^0.1"
or add
"ui-awesome/form-model": "^0.1"
Check the documentation docs to learn about usage.
Check the documentation testing to learn about testing.
The MIT License (MIT). Please see License File for more information.