1. Go to this page and download the library: Download ui-awesome/html-field 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 / html-field example snippets
use App\Model\BasicForm;
use UIAwesome\Html\Field\Field;
echo Field::tag()
->formModel(new BasicForm())
->property('username')
->render();
use App\Model\BasicForm;
use UIAwesome\Html\Field\Field;
$form = new BasicForm();
$form->addError('username', 'Username is ender();
use App\Model\BasicForm;
use UIAwesome\Html\Field\Field;
use UIAwesome\Html\Form\InputEmail;
echo Field::tag()
->formModel(new BasicForm())
->property('username')
->input(InputEmail::tag())
->containerClass('form-group')
->render();
use UIAwesome\Html\Core\Config\Config;
use UIAwesome\Html\Field\Factory\ControlFactory;
use UIAwesome\Html\Field\Field;
$config = new Config(theme: $theme, factory: new ControlFactory());
echo Field::tag()
->config($config)
->control('email')
->formModel($form)
->property('email')
->render();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.