1. Go to this page and download the library: Download nowise/uup-html 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/ */
nowise / uup-html example snippets
$options = array('opt1' => 'val1', 'opt2' => 'val2');
$form = new Form('script.php');
$combo = $form->addComboBox('opt'); // Got ComboBox object in return
foreach ($options as $name => $value) {
$option = $combo->addOption($value, $name); // Get Option object in return
}
$form->addSubmitButton();
$form->output(); // Output this form
$paragraph = new Paragraph();
$paragraph->addElement($form); // Add form to paragraph
$paragraph->output(); // Calls output on form object implicit