PHP code example of ui-awesome / form-model
1. Go to this page and download the library: Download ui-awesome/form-model 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/ */
ui-awesome / form-model example snippets
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.',
];
}
}