Download the PHP package rwitchell/gump-form-builder without Composer
On this page you can find all versions of the php package rwitchell/gump-form-builder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rwitchell/gump-form-builder
More information about rwitchell/gump-form-builder
Files in rwitchell/gump-form-builder
Package gump-form-builder
Short Description A fast, extensible & stand-alone PHP form builder class.
License MIT
Homepage https://github.com/rwitchell/GUMPFormBuilder
Informations about the package gump-form-builder
What is it?
A PHP class to help generate a web form, based on an input of text rules separated with pipes. Based on GUMP (https://github.com/Wixel/GUMP), by Sean Nieuwoudt (http://twitter.com/SeanNieuwoudt)
Can be used to pull an entity directly from the database, and present table columns as inputs. You can then validate those inputs, and pass back into the database.
Script was built to handle 30-150 form elements that needed to have various rules. When the form is submitted, rules are then passed into GUMP for input value validation.
Getting Started
How to Use (extended):
``
Available Elements
Input form options available:
- text
(default if none is entered)
- select dropdown
- options
array of key-value pairs
- options
- checkbox
- radio
- file
- button
- hidden
- password
- datetime (via jquery / javascript)
- nodisplay
will not create the input
- max_len
Place an input restriction on the number of characters that can be entered into a text input
- id
places a value in the id selector for the input
- after
generated text directly to the right of the input
- readonly
makes the input readonly
- yesno
creates a simply radio option
Input validator options available:
(All GUMP options currently available)
- required
- max_len
How to contribute
TODO:
- finish off elements
- build array to sort elements