PHP code example of fyre / formbuilder
1. Go to this page and download the library: Download fyre/formbuilder 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/ */
fyre / formbuilder example snippets
use Fyre\Form\FormBuilder;
$form = new FormBuilder($html);
$button = $form->button($content, $options);
$close = $form->close();
$fieldsetClose = $form->fieldsetClose();
$fieldset = $form->fieldsetOpen($options);
$input = $form->input($name, $options);
$input = $form->checkbox($name, $options);
$input = $form->color($name, $options);
$input = $form->date($name, $options);
$input = $form->datetime($name, $options);
$input = $form->email($name, $options);
$input = $form->file($name, $options);
$input = $form->hidden($name, $options);
$input = $form->image($name, $options);
$input = $form->month($name, $options);
$input = $form->number($name, $options);
$input = $form->password($name, $options);
$input = $form->radio($name, $options);
$input = $form->range($name, $options);
$input = $form->reset($name, $options);
$input = $form->search($name, $options);
$input = $form->submit($name, $options);
$input = $form->tel($name, $options);
$input = $form->text($name, $options);
$input = $form->time($name, $options);
$input = $form->url($name, $options);
$input = $form->week($name, $options);
$label = $form->label($content, $options);
$legend = $form->legend($content, $options);
$open = $form->open($action, $options);
$open = $form->openMultipart($action, $options);
$select = $form->select($name, $options);
$select = $form->selectMulti($name, $options);
$textarea = $form->textarea($name, $options);