Download the PHP package wscore/formmodel without Composer
On this page you can find all versions of the php package wscore/formmodel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download wscore/formmodel
More information about wscore/formmodel
Files in wscore/formmodel
Download wscore/formmodel
More information about wscore/formmodel
Files in wscore/formmodel
Vendor wscore
Package formmodel
Short Description component for HTML form and validation model.
License MIT
Package formmodel
Short Description component for HTML form and validation model.
License MIT
Please rate this library. Is it a good library?
Informations about the package formmodel
FormModel
a framework agnostic component for building HTML forms and validations.
works for;
- various input types, such as date, textarea, choices,
- incorporates another form,
- incorporates one-to-many forms, and
- defaults to output html forms for
Bootstrap 4
.
inspired by
Symfony/form
component.
Installation
t.b.w.
Demo
clone this repository,
run the demo script,
then, browse the above url.
How To
Create a FormModel
create a form model using FormBuilder
.
Add Elements
add elements for the form model, $book
.
usage: add($name, $typeName, $options);
,
$name
: name of the element,$typeName
: class name of the element type,$options
: an array of options.
Validate Input
to validate input values, such as form,
Show HTML Form
to show HTML forms, create a view, $view
, as below.
or, validate inputs then create a view.
once a view is created, show html forms as such.
All versions of formmodel with dependencies
PHP Build Version
Package Version
The package wscore/formmodel contains the following files
Loading the files please wait ....